Report this

What is the reason for this report?

How to Deploy Flask App on Droplets

Posted on February 6, 2024

How could I deploy a flask app and keep it online 24/7? I setup a nignx server already on the droplet and have the project located in /var/www/. I then deployed it by running python3 main.py. I have it running at port 8080. I can access the app by going to https://<ip>:8080. However, it doesn’t stay online 24/7 and also I want add a subdomain pointing to it. I tried creating an A record and pointing it to the IP but it doesn’t work. Any help is appreciated!

The developer cloud

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

Start building today

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