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.

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!
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.
Hey friend,
Thanks for posting this question, it can help others who experience similar. In this case I’d like to narrow it down to this:
2019/02/18 23:33:06 [error] 32636#32636: *1267 connect() failed (111: Connection refused) while connecting to upstream, client: someIPwhichdoesntmatter, server: _, request: "GET / HTTP/1.0", upstream: "http://127.0.0.1:3000/", host: "cloud.digitalocean.com"
While you have port 3000 open, Nginx is receiving a “Connection refused” error when connecting locally to port 3000. This most likely means that your application is not currently running/listening on port 3000. You can use “netstat -tulpn | grep 3000” to confirm. If you get no return, then the app isn’t listening. Check the output when you start your application, it may be failing to start.
Jarland
Hi, thanks, it helped. After investigation I figured out that my env variable <%= ENV["DO_DATABASE"] %> was seen by system while doing migration, but it wasn’t seen while doing server restart by systemctl restart rails.service . Basically I have no idea why. So I decided to insert exceptionally data to my code. Then server restart works correctly (app starts running). Thanks once again.