【发布时间】:2018-12-14 01:09:35
【问题描述】:
我有一个命令要执行python manage.py runserver 0:8000 --insecure
在服务器上使用 PM2。我无法创建 JSON 文件格式,因此我可以使用该 json 文件运行而不是编写整个命令。
【问题讨论】:
标签: python python-3.x pm2
我有一个命令要执行python manage.py runserver 0:8000 --insecure
在服务器上使用 PM2。我无法创建 JSON 文件格式,因此我可以使用该 json 文件运行而不是编写整个命令。
【问题讨论】:
标签: python python-3.x pm2
生态系统.config.js:
module.exports = {
apps : [{
script: 'manage.py',
args: 'runserver 0:8000 --insecure'
}]
}
然后:
pm2 start ecosystem.config.js
【讨论】: