I believe I deployed my Django webapp through digital ocean, but I have to leave terminal and run python manage.py runserver on it. I tested it and I can access the website on my phone and another computer. However, when I close terminal, runserver command stops itself and my webapp is offline. How can I keep it online?
I’m going to highlight a section of the docs for runserver
DO NOT USE THIS SERVER IN A PRODUCTION SETTING. It has not gone through security audits or performance tests.
You’re moving from a development to a production-style environment. You’re entering a topic known as “Deployment”. It is what I consider to be one of the most confusing parts of working with Django.
Also see my comments at:
Confused on how to run new polls app from advanced tutorial - #8 by KenWhitesell
- How to start django with apache - #3 by KenWhitesell
Searching this site for “deployment” will give you a number of threads you can read.