npum

1.0.5 • Public • Published

NPUM

Issues updating remotely a nodejs process?

npum may help you, it provides a watcher daemon looking at a repository branch for updates, when it finds an update it handles the update.

Requirements

  • git
  • pm2

pm2 should me attached to boot process (run pm2 startup)

Project requirements

npum uses 2 scripts that should be defined inside the package.json file.

  • start script is used to start the project
  • stop script is used to stop the project processes

Don't forget to add any build procedure inside the postinstall script

If project shouldn't be updated at an specific moment a file called .npum-prevent-update should be added to the root of the project

Start updates watcher

To start the watching process use the next command:

npum start <working-dir> <git-url> [git-branch]
  • working-dir: directory where the project will be cloned
  • git-url: url from the git repository to be watched (ensure clone permissions for the url)
  • git-branch: branch from the git repository to be watched (default: master)

Readme

Keywords

none

Package Sidebar

Install

npm i npum

Weekly Downloads

1

Version

1.0.5

License

ISC

Unpacked Size

6.87 kB

Total Files

7

Last publish

Collaborators

  • dsilva2401