Rails app 504 Timeout with unicorn and nginx

Hey guys,

I followed this article ( to deploy a Rails app on a Ubuntu droplet, but I’m getting 504 everytime like the guy in the comments.

Someone have already found a resolution?

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.

Check /etc/hostname and make sure your droplet name is in there.

Try running “bundle exec” as the error suggests.

Now I have a distinct error. I installed some gems that where with wrong versions and ran bundle exec rake assets:precompile, but the unicorn.log shows: <br> <br>“You have already activated rack 1.5.2, but your Gemfile requires rack 1.4.4. Prepending bundle exec to your command may solve this”