Search code examples
pythondjangobashamazon-ec2aws-code-deploy

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 .


Solution

  • I ended up using screen :

    screen -d -m python manage.py runserver