ruby on rails - An unhandled lowlevel error occurred. The application logs may have details -


i'm tyring deploy rails app digital ocean droplet , seems configured ok error:

an unhandled lowlevel error occurred. application logs may have details. 

i'm not sure logs empty.

here's nginx config:

upstream puma {   server unix:///home/yourcv.rocks/shared/tmp/sockets/yourcv.rocks-puma.sock; }  server {   listen 80 default_server deferred;   server_name 127.0.0.1;    root /home/yourcv.rocks/current/public;   access_log /home/yourcv.rocks/current/log/nginx.access.log;   error_log /home/yourcv.rocks/current/log/nginx.error.log info;    location ^~ /assets/ {     gzip_static on;     expires max;     add_header cache-control public;   }    try_files $uri/index.html $uri @puma;   location @puma {     proxy_set_header x-forwarded-for $proxy_add_x_forwarded_for;     proxy_set_header host $http_host;     proxy_redirect off;      proxy_pass http://puma;   }    error_page 500 502 503 504 /500.html;   client_max_body_size 10m;   keepalive_timeout 10; } 

thank you! :)

this because haven't set secret key correctly. double check config/secrets.yml file: should this:

production: secret_key_base: <%= env["secret_key_base"] %>

then in droplet, can run bundle exec rake secret secret key. there options dotenv useful gem loads contents of .env file env.


Comments

Popular posts from this blog

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -