I’m trying to deploy my first RoR app. I installed PostgreSQL, created database, cloned source code, bundled it and applied migrations. But I’ve got “We’re sorry, but something went wrong”. So I’ve decided to reboot it using DO instruction for safety rebooting. And now I’m getting 504 Gateway Time-out
Here is nginx error.log’s tail
https://gist.github.com/femalemoustache/13089aad6c21f1e5934e
Here is unicorn.log’s tail
https://gist.github.com/femalemoustache/3d6485b2586624154a42
What to do?
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!
Edit your /etc/nginx/nginx.conf and alter those parameters in the ‘http’ section (set timeouts according to your needs): send_timeout 120; proxy_read_timeout 120; proxy_connect_timeout 120;
and then restart nginx (service nginx reload)
that variables respond to gateway time limit, if it doesnt help - increase numbers
This comment has been deleted
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.