Not done
> npm install -g nodehook
> cd /nodehook/directory
> nodehook init
> nodehook new config
> vi something
> nodehook start
Configuration requires 3 properties, the name of the repository, branch, script to run and user to run the script as.
Note: nodehook does a sudo to run the script and requires the following config in /etc/sudoers:
deploy ALL=(ALL) NOPASSWD: ALL
Defaults:deploy !requiretty
Ensure that the script you want to run has execute rights (> chmod a+x my-deploy-script.sh
)