python 脚本的 pm2 json 文件格式
pm2 json file format for python script
我有一个命令要执行 python manage.py runserver 0:8000 --insecure
在 server.I 上使用 PM2 无法创建 JSON 文件格式,因此我可以 运行 使用那个 json 文件来代替编写整个命令。
ecosystem.config.js:
module.exports = {
apps : [{
script: 'manage.py',
args: 'runserver 0:8000 --insecure'
}]
}
然后:
pm2 start ecosystem.config.js
我有一个命令要执行 python manage.py runserver 0:8000 --insecure
在 server.I 上使用 PM2 无法创建 JSON 文件格式,因此我可以 运行 使用那个 json 文件来代替编写整个命令。
ecosystem.config.js:
module.exports = {
apps : [{
script: 'manage.py',
args: 'runserver 0:8000 --insecure'
}]
}
然后:
pm2 start ecosystem.config.js