Open leijing7 opened 10 years ago
Once you did the git pull, does pm2 deploy production works?
haven't tried it again yet. i will give it a go then let you know.
I finally did it again. It's on a Raspberry Pi. After 'git pull', the 'deploy production' command works.
I am also having this issue, however after the exec "git pull" the output remains the same and it never launches the application (or the PM2 daemons or anything, it just creates the folders)
Initializing the PM2 daemon on that server also has no affect.
I think i found the problem. Im having the same problem and i start diginig around and found a diff in deploy
script.
In this repo you have this.
but in my instance i have this
i have the latest version of pm2. the version of pm2-deploy in instance is the same of repo
so i edit the deploy script according with what you have in github and it work just fine.
perhaps you've forgotten to make the publication in npm
the solution above worked for me. When this code changes will be available in pm2?
Tried pm2 deploy eco.json production exec "git pull"
, did not work.
Try this:
https://stackoverflow.com/a/68417902/7397707
Use --force
.
pm2 deploy ecosystem.config.js production --force
Note: if git report an error that there are local changes but still want to push what is on the remote GIT, you can use the --force option to force deployment.
See also https://github.com/Unitech/pm2-deploy/issues/193#issuecomment-1137773493 for similar issue but different reason (git not working properly).
I ran the setup successfully. After I changed some code, I want to update the server side, but got
So I have to use
to get it done. The exec works, but I would like to use the update as well.
Below is the eco.json file. I only use the production part.