Добавлена ENV переменная, отвечающая за dsn для соединения с sentry

This commit is contained in:
ErickSkrauch
2016-12-02 00:23:40 +03:00
parent 225f2fd3cf
commit ef8bb894f0
3 changed files with 6 additions and 1 deletions

View File

@@ -22,7 +22,8 @@ return [
],
'sentry' => [
'class' => mito\sentry\SentryComponent::class,
'dsn' => 'https://9f37c63079e24f35b585ab61dd7ee068:b501bfc8d9fc49ccadbf16731705b222@sentry.ely.by/3',
'enabled' => !empty(getenv('SENTRY_DSN')),
'dsn' => getenv('SENTRY_DSN'),
'environment' => YII_ENV_DEV ? 'development' : 'production',
'jsNotifier' => false,
'client' => [