Closed SimonLab closed 6 days ago
@SimonLab thanks for opening this issue! It's a bit of a strange error message considering the file did exist on the branch. It might be worth opening this issue on the PM2 GitHub: https://github.com/Unitech/pm2/issues to see if anyone else knows what the cause was.
Closing as we are no longer using PM2
. ✅
I had an issue while using pm2 for deployement: The master branch already had a
ecosystem.config.js
but when I tried to create a new PR this issue appears:I tried to rebase/merge my branch with master but it was already up to date I figure out that the issue was due to the
git pull
command defined inpredeploy
:To resolve this issue I replace
git pull
bygit fetch --all; git reset --hard origin/master
. This will force the pre-deploy to get the master version and discard any conflict occuring with the branch.This solution is working in my case because I only want to deploy the master branch, however I'm not 100% sure why the conflict occurs in the first place.