Rails (RoR) app not working

Hello, today I deployed my app in a server, I followed this tutorial( ), went everything OK, but when I access my app by IP I receive the error 500. The software works locally perfectly. How can I know where is the problem?

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

myappname = My app rsrs

upstream app_server { server unix:/var/run/unicorn.sock fail_timeout=0; }

server { listen 80; root /home/rails/myappname/public; server_name _; index index.htm index.html;

location / {
        try_files $uri/index.html $uri.html $uri @app;

location ~* ^.+\.(jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|p$
                try_files $uri @app;

 location @app {
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header Host $http_host;
        proxy_redirect off;
        proxy_pass http://app_server;