Unitech / pm2-deploy

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

Feature Request: Deploy from npm package #137

Open pixeldrew opened 7 years ago

pixeldrew commented 7 years ago

During our build process we build on a CI server and run npm pack, packaging only the compiled application and bundledModules as a tarball. Our application server does not have outbound access to the internet so we can't run git clone or npm install.

So we deploy the tarball by scp'ing it to the application server. We then extract the package and run pm2 on the application server to reload the ecosystem.json file.

Rather than scp'ing the tarball, i'd like to use pm2 on the build server to deploy to the application server using the ssh params already provided. (I imagine pm2 also needs to be on the application server)

It'd be great if you could use an npm package (published or local tarball) as a parameter to deploy to pm2 rather than only a git repo.

I'd be happy to work on a PR if you consider this a useful feature. I noticed someone else also requested this feature here

vmarchaud commented 7 years ago

I started a new project because the actual one is pretty much a shell script, if you are interested we can talk a little bit about how you can implement it In the long run, we should replace pm2-deploy with deployerjs in PM2