我有一个命令来执行python manage.py runserver 0:8000 --insecure
在python manage.py runserver 0:8000 --insecure
使用PM2。我无法创建JSON文件格式,因此我可以使用该json文件运行来代替编写整个命令。
ecosystem.config.js:
module.exports = {
apps : [{
script: 'manage.py',
args: 'runserver 0:8000 --insecure'
}]
}
Then:
pm2 start ecosystem.config.js
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.