简体   繁体   中英

pm2 json file format for python script

我有一个命令来执行python manage.py runserver 0:8000 --insecurepython 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.

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