-1

I have created an application which resides on a server. The application uses Django to connect. So, if I want to access the web page I have to run the following command to start the server -

 python manage.py runserver ip adress:port number 

What is the way to keep it running all the time even after shutting down my computer?

But, I also want to save the logs of the application so that I can see it later and debug or just check the running of the program whenever I want to.

TeeKay
  • 1,025
  • 2
  • 22
  • 60

1 Answers1

1

I managed to solve the issue by running the following command -

 nohup python manage.py runserver ip:port > Output.txt &

The log is getting saved in the Output.txt file.

TeeKay
  • 1,025
  • 2
  • 22
  • 60