Magento2 Sentry 使用

这个 Magento 2 模块将Sentry集成到 magento 2 中。根据 magento 2 后端配置的日志级别,可以将通知和错误发送到 Sentry

参考: https://github.com/justbetter/magento2-sentry

安装

  • composer require justbetter/magento2-sentry
  • bin/magento module:enable JustBetter_Sentry
  • bin/magento setup:upgrade
  • bin/magento setup:di:compile
  • bin/magento setup:static-content:deploy

在Magento2 生产模式环境中使用出现下面问题,开发者模式不报错。

Unable to retrieve deployment version of static files from the file system

解决办法

在env.php文件里面配置

'static_content_on_demand_in_production' => true

发表评论