0

I am creating a project where I am using an ubuntu server for production.

I need to run the server in the background even though I log out. So, as a solution I am using screen but however if I restart it won't work as we all know and I have to rewrite the screen commands.

So, I want to use the startup service but somehow I am lost in that as I have no idea how to do that.here is the one way to write the script and I love it but how to add the command

python manage.py runserver [IP Address]

in this service.

Sorry if I sound so silly but I need a quick and useful solution, so I thought to be here.

Thanks if anyone can guide me on it.

Anny
  • 163
  • 1
  • 9
  • You should [*not*](https://docs.djangoproject.com/en/dev/ref/django-admin/#runserver) use `runserver` in production - it is intended only for development. The [documentation](https://docs.djangoproject.com/en/4.0/howto/deployment/) explains what you need for deployment. – solarissmoke Apr 16 '22 at 04:08
  • Thanks @solarissmoke Let me read the documention – Anny Apr 16 '22 at 04:31

0 Answers0