简体   繁体   中英

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.

I ended up using screen:

screen -d -m python manage.py runserver

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM