Unitech / pm2-deploy

Deploy part of PM2
http://pm2.keymetrics.io/docs/usage/deployment/
MIT License
178 stars 72 forks source link

Deploying a non-git package? #196

Closed blitzmann closed 3 years ago

blitzmann commented 3 years ago

I'm curious if there is a way to use pm2 deploy to deploy a package that it is given, rather than a git repo. In our situation, we use nx as our monorepo tooling. Since it's a monorepo, all of our applications live in the same repo and are built separately (depending on what has been affected, this is a feature of nx).

For us to use pm2, from what I understand, our build server would have to build the proper files, and then commit them to a branch on the repo that pm2 can then pull. This can cause a bit of a headache considering we would then have multiple deploy- branches for each application we wish to deploy.

Would it be possible to simply give the deploy command a link to a zip file that it would you as the source files? Basically the same thing as git clone, but without all the hassle and overhead of managing those branches.

blitzmann commented 3 years ago

Closing this issue to clean it out of my issues page. Our team ended up going to Octopus Deploy, so this question is moot for our needs. If you run into this issue from Google, perhaps open a new issue.