masterofdestiny
masterofdestiny

Reputation: 2811

Django : Run Django at system boot

Basically i am Django developer so i have just working knowledge in Linux

I have a django app running on EC2 .

Now here is the problem suppose if i am restarting the ec2 my django app need to be run again .I don't want to run the django server again and again .

So i tried to put this process in cronjob like

@reboot cd /path/to/dir/./manage.py runserver

Unfortunately it is not working .What might problem is here ?

Please tell me the way to run Django application at system booting .

Upvotes: 0

Views: 1142

Answers (1)

Daniel Roseman
Daniel Roseman

Reputation: 599628

You should not be using runserver to serve your application in production. You should use a real webserver, for example Apache. That will automatically start up on reboot.

Upvotes: 3

Related Questions