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!
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.
Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.