It is the second time, when I ship application in Docker container and see the following error:
An unhandled lowlevel error occurred. The application logs may have details.
Usually after that you open application logs inside container, and see nothing.
There are two problems, which are constantly repeated by me:
- I forget to set
RAILS_LOG_TO_STDOUTenv variable to
true, so rails logs are missing
- When I set logging properly then I can figure out, that
for 'production' environment, set this value inconfig/secrets.yml``
So I just need to set
Just make sure, that this key value is in safe, so don’t keep it in your SCM, but ship it with old good ENV variables.