🚀 Launch Week Day 2:Introducing Custom Tabs for Org Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

git-push-deploy

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-push-deploy

Setup a remote repo you can git push deploy to

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

git-push-deploy

Small bash program that

  • Logs into a remote server
  • Sets up a git repo you can push to
  • Adds a post-receive hook that runs npm install and more
  • Adds the remote repo as a deploy remote locally
npm install -g git-push-deploy

Usage

cd some-cool-repo
git-push-deploy user@my-cool-server.com

Then after adding a stop-service / start-service script to package.json you can deploy your service

git push deploy master

When receiving a push the remote repo does the following

  • Runs npm run stop-service
  • Updates the remote checkout and cleans the repo.
  • Runs npm install --production
  • Runs npm run one-time-setup. This is only run once unless you change the script.
  • Runs npm run start-service

The start-service script should make the application start running in the background and the stop-service script should make that background process stop running.

Thats it! Happy deploying!

License

MIT

FAQs

Package last updated on 05 Oct 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts