如题,pm2的项目启动重启删除都简单通过一个命令搞定了,如果使用id操作的话,万一错了怎么办呢?请问pm2的部署方式上有什么容错办法?
PHPz2017-04-17 16:15:35
So you need App name
. Using App name
can reduce the probability of deleting the wrong app. You need to give each of your apps a different name for all commands. Use App name
instead of id. App name
,用App name
操作可以降低你删错应用的概率,你需要给你的每个应用取不同的名字, 所有命令行用App name
取代id。
另外如果是线上应用的话,肯定要有正式的发布流程的,发布脚本写好之后,以后的流程规范化。尽量少人工登陆到线上机器去做操作。
所有的所有都只是能降低你出错的概率,无法百分百保证,楼上的同学说的挺好的,看清楚再回车
See clearly before entering
.🎜🎜
🎜PHPz2017-04-17 16:15:35
The first lesson in operation and maintenance看清楚再按回车
I use pm2 to operate and maintain more than a dozen nodejs push servers and no problems have been found for the time being. This is fine. Very convenient.