ruby-on-rails – 发生未处理的低级错误.应用程序日志可能有详细信息

前端之家收集整理的这篇文章主要介绍了ruby-on-rails – 发生未处理的低级错误.应用程序日志可能有详细信息前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我想要将一个rails应用程序部署到数字海洋液滴,并且似乎都配置好,但是我收到这个错误
An unhandled lowlevel error occurred. The application logs may have details.

我不知道该怎么做,因为日志是空的.

这是Nginx配置:

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;
}

谢谢!

猜你在找的Ruby相关文章