pm2 deploy ecosystem.json production执行报错

来源:9-1 在 Ubuntu 14.04 上安装 MongoDB

乡子

2019-01-21

$ pm2 deploy ecosystem.json production
–> Deploying to production environment
–> on host 47.99.159.102
○ deploying origin/master
○ executing pre-deploy-local
○ hook pre-deploy
root@47.99.159.102’s password:
○ fast forward master
root@47.99.159.102’s password:
Already on 'master’
M app.js
Your branch is ahead of ‘origin/master’ by 6 commits.
(use “git push” to publish your local commits)
From github.com:YUWA153/family-tradition

  • branch master -> FETCH_HEAD
    Updating cbad6c1…cd6daae
    error: Your local changes to the following files would be overwritten by merge:
    app.js
    Please, commit your changes or stash them before you can merge.
    Aborting

git pull failed

Deploy failed
1

写回答

1回答

Scott

2019-01-21

服务器上的文件被改动了,导致合并分支出错,你把服务器的 production 整个文件夹删掉,重新 pm2 setup 和 deploy production 试试看

1
0

Node.js项目线上服务器部署与发布

阿里云部署Node.js+MongoDB+Nginx的应用项目,打通全栈

1747 学习 · 448 问题

查看课程