I deployed my django app in ubuntu server. I want to give to API for mobile application. So i followed some source and i deployed. For I want to deploye django, I use gunicorn and ngnix.
Server is working with this command:
gunicorn --bind 0.0.0.0:8000 myapp.wsgi
I can give API with this way. Everything is okey.
But when i close cmd which connected to server, server stop. Can server work while i dont connect by my computer? Must not close cmd and my computer? Or can i do other way?
I fixed it! We just need to add "--daemon" in our code. For example:
gunicorn --bind 0.0.0.0:8000 myapp.wsgi --daemon