The Wayback Machine - https://web.archive.org/web/20200706010413/https://github.com/Unitech/pm2/issues/4687
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

"pre-deploy" hook missing from pm2 ecosystem.json documentation #4687

Open
niftylettuce opened this issue Apr 28, 2020 · 6 comments
Open

"pre-deploy" hook missing from pm2 ecosystem.json documentation #4687

niftylettuce opened this issue Apr 28, 2020 · 6 comments

Comments

@niftylettuce
Copy link
Contributor

@niftylettuce niftylettuce commented Apr 28, 2020

There is no "pre-deploy" hook listed here as an option at https://pm2.keymetrics.io/docs/usage/deployment/. It should also be mentioned that this hook will run BEFORE git pull occurs, e.g. you may want to suggest to users to put git reset --hard as the pre-deploy hook in case their files such as yarn.lock change frequently, or localization occurs.

@AoDev
Copy link

@AoDev AoDev commented May 6, 2020

@niftylettuce I was looking for a way to run a command before the repo is cloned, but from the docs, pre-deploy executes locally, so this wouldn't solve the issue with git conflicts, would it?

@niftylettuce
Copy link
Contributor Author

@niftylettuce niftylettuce commented May 6, 2020

This runs locally on the server's current folder, so yes if you had changes in your server (e.g. yarn.lock) then you could use this as I did.

@stale
Copy link

@stale stale bot commented Jun 5, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jun 5, 2020
@niftylettuce
Copy link
Contributor Author

@niftylettuce niftylettuce commented Jun 5, 2020

bump

@stale stale bot removed the stale label Jun 5, 2020
@stale
Copy link

@stale stale bot commented Jul 5, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jul 5, 2020
@niftylettuce
Copy link
Contributor Author

@niftylettuce niftylettuce commented Jul 6, 2020

bump

@stale stale bot removed the stale label Jul 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
You can’t perform that action at this time.