Heroku yii2-app-basic not registered

I am trying to deploy a mu application on heroku, but the runtime directory is empty on the server. Here is my log config:

'log' => [ //'traceLevel' => (YII_ENV_DEF) ? 3 : 0, 'targets' => [ [ 'class' => 'yii\log\FileTarget', 'levels' => ['error', 'warning'], ], [ 'class' => 'yii\log\SyslogTarget', 'levels' => ['error', 'warning'], ], [ 'class' => 'yii\log\FileTarget', 'levels' => ['error', 'warning', 'info'], 'logFile' => '@app/runtime/all.log', 'maxFileSize' => 1024 * 2, 'maxLogFiles' => 20, ], ], ], 

The access right for the runtime directory is 777.

+6
source share
1 answer

The problem was that the heroku file system did not sync with the application instance. In short, a newer file system is used to store data on the hero, use stderr for errors and something else for files.

0
source

Source: https://habr.com/ru/post/986353/


All Articles