Socket
Book a DemoInstallSign in
Socket

deploy-from-npm

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deploy-from-npm

Continuous deployments tailing npm

latest
Source
npmnpm
Version
1.1.0
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

deploy-from-npm

Continuous deployment tool using npm.

Watches npm for all updates to top level dependencies, then if there's a match it runs tests, upgrades your app and fires your restart command.

Usage

$ cd my-service

$ # use something like psy or forever to run your service
$ npm install -g psy
$ psy start -n my-service -- npm start

$ # use deploy-from-npm to restart it once a dependency has been updated
$ npm install -g deploy-from-npm
$ deploy-from-npm . "psy restart my-service"

And in general:

$ deploy-from-npm

Usage:

  $ deploy-from-npm DIR RELOAD

Example:

  $ deploy-from-npm /srv/my-service "kill $server-pid"

Installation

$ npm install -g deploy-from-npm

Kudos

This was @mafintosh's idea, I'm just implementing it.

License

MIT

FAQs

Package last updated on 01 Sep 2016

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