Nginx 504 Gateway Time-out - Ruby on Rails

August 12, 2014 6.8k views

I have followed all the instruction to install a droplet with Ruby on Rails. I’ve removed the folder (/home/rails) created by system and created a new one. These are the tutorials that I followed:

[](http:// “Link title”)

[](http:// “Link title”)

Even after setup all Ruby on Rails app, it still getting Nginx 504 Gateway Time-out error.

Is there another step to follow?

  • Hi! Could you provide us with anymore information about your problem? Try checking your logs.

    Unicorn: tail /home/unicorn/log/unicorn.log

    Nginx: tail /var/log/nginx/error.log

  • If you can paste us your error logs and your nginx config file that would be very helpful.

    Also we have a one-click install image available under the Applications tab on the create droplet page so you can spin up a server there and review the configuration on a live running system and compare it to yours.

1 Answer

Sorry to see that your question hasn’t received an answer yet. Unfortunately, after this much time, it is unlikely that an answer for this specific question will be provided. For people still landing here via search, check out this updated tutorial showing you how to get up and running with Ruby on Rails behind Nginx:

by Mitchell Anicas
When you are ready to deploy your Ruby on Rails application, there are many valid setups to consider. This tutorial will help you deploy the production environment of your Ruby on Rails application, with PostgreSQL as the database, using Unicorn and Nginx on Ubuntu...
Have another answer? Share your knowledge.

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