1.0.5 • Published 7 years ago
npum v1.0.5
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
gitpm2
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.
startscript is used to start the projectstopscript is used to stop the project processes
Don't forget to add any build procedure inside the
postinstallscript
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 clonedgit-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)