Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pm2 deploy doesn't get recent updates #2436

Closed
benishak opened this issue Oct 10, 2016 · 4 comments
Closed

pm2 deploy doesn't get recent updates #2436

benishak opened this issue Oct 10, 2016 · 4 comments

Comments

@benishak
Copy link

PM2 @ 2.0.18

when I deploy new changes, pm2/git doesn't get the recent changes I need to login to the server and pull the changes manually issuing git pull origin mybranch

On bitbucket I can see the my last commit
To fix this problem I had to remvoe the folder and run pm2 deploy .... setup again, but when I do some changes and need to deploy them, it stucks in same commit which was at the time pm2 cloned the git repo

Is it pm2 or git issue?
if it is issue with git, why when I login to server and go to the directory where my project located and type git pull ... it gets the recents updates but when I type pm2 deploy env on my local machine, pm2/git doesn't pull the new commits

@benishak
Copy link
Author

I fixed this issue by updating git to latest version on the remote server. I don't know why this happened before this never happened before even using the same version of git. but updating git fixed the issue .... I'm using CentOS and had to install IUS Packages to get git 2.10.x. CentOS only come with old release and latest was version 1.8.x

@benishak
Copy link
Author

i leave this issue open for feedback

@Soulwest
Copy link

I have same problem with git 1.8.x on Centos 7. Installing from sources git 2.0.5 helped me.

@vmarchaud
Copy link
Contributor

Might come from the fact that we spawn git command here and it might doest work with older version. Sadly i dont think we will support it one day.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants