Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

By Jake
I have been trying to deploy my rails application for a good part of this week now and have tried many, many, many times to try and get this working. I either hit a 502 bad gateway, a 504 gateway timeout or the page simply cannot be reached.
I have done the following already:
/home/rails/my-app-namenano /etc/unicorn.conf and changed the value to working_directory "/home/rails/my-app-name"nano /etc/nginx/sites-enabled/rails and changed the value to root /home/rails/my-app-name/public;service nginx reload && service unicorn restartMy favicon loads and I see that but the rails application just doesn’t load. My rails app works in production on a free Heroku dyno so I’m confident it’s not that
Thank you for any help you can provide, it is greatly appreciated!
Running nginx -t outputs this:
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
This is my error log: [error] 13744#13744: *19 upstream timed out (110: Connection timed out) while reading response header from upstream, client: [IP Address], server: _, request: "GET / HTTP/1.1", upstream: "http://unix:/run/DigitalOceanOneClick/unicorn.sock/", host: "[My Domain Name]"
ebeecroft
68aa2215160846bca0a00f952c5fdc
009fd274aeae48f2bfbda6ef568676
Cloudstream Apk
032f50ee7f7d489db3b05e204fe139
032f50ee7f7d489db3b05e204fe139
Edward Sitarski
ebeecroft
dashan
34bcef38725b4e6eb5224ae028f17e