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.
Heya,
It seems that your issue might be related to the upstream Gunicorn server timing out. To get past this problem, try the following steps:
- gunicorn --bind unix:/root/text_generator/textgen.sock yourapp:wsgi --timeout 120
Ensure there’re no typos or syntax errors in your Nginx configuration file. Pay close attention to the location block and the path that the proxy_pass directive is pointing to.
Restart the services - After making any necessary changes, restart both Gunicorn and Nginx using the commands:
- sudo systemctl restart gunicorn
- sudo systemctl restart nginx
For more information about configuring Gunicorn and Nginx, refer to this DigitalOcean tutorial: How To Serve Flask Applications with Gunicorn and Nginx on Ubuntu 20.04.
Hope that this helps!