Nathanael
Nathanael

Reputation: 1000

Run a new shell process for django runserver command on AWS CodeDeploy

I have an AWS CodeDeploy script for bootstrapping/running a Django instance. However I reach a problem in that the python manage.py runserver command consumes the current shell process, so the CodeDeploy script never technically completes.

Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.

How would one run this command in a way that doesn't block the shell script? I have tried appending the command with an & to no avail .

Upvotes: 1

Views: 245

Answers (1)

Nathanael
Nathanael

Reputation: 1000

I ended up using screen :

screen -d -m python manage.py runserver

Upvotes: 1

Related Questions