python - python脚本的pm2 json文件格式
问题描述
我有一个在 python manage.py runserver 0:8000 --insecure
服务器上使用 PM2 执行的命令。我无法创建 JSON 文件格式,因此我可以使用该 json 文件运行而不是编写整个命令。
解决方案
生态系统.config.js:
module.exports = {
apps : [{
script: 'manage.py',
args: 'runserver 0:8000 --insecure'
}]
}
然后:
pm2 start ecosystem.config.js
推荐阅读
- android - 区分蓝牙连接到 Mac 或 Windows/Linux 设备
- pycharm - Ctrl + N 在 Ubuntu、KDE 的 PyCharm 中不能用作新建文件夹的热键 ...
- reactjs - 如何使用 React 获取 API 数据并将其用作 Highchart Data 对象
- java - 如何优化程序以计算加泰罗尼亚语数
- r - 您可以使用循环来重复 cbind 函数吗?
- javascript - 如何使用 Power BI Javascript API 选择数据点?
- c++ - 是什么让重载函数比另一个函数更受欢迎?
- java - Java System.out.format 不输出所有信息
- r - 根据顺序行值创建新数据框
- typescript - 无法键入每个键映射到通用值的对象