Skip to content

A post receive hook server written in node to handle github or gitlab hooks.

Notifications You must be signed in to change notification settings

rorotikamobile/nodehook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nodehook

Installation

Not done

> npm install -g nodehook
> cd /nodehook/directory
> nodehook init
> nodehook new config
> vi something
> nodehook start

add upstarted instructions

Web interface

Configure a password

Autorestart nodehook on a push on itself

socket.io output for a script

Config

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:

Assuming you have create a user named 'deploy' to run nodehook as:

Deploy user can run commands as any other user

deploy ALL=(ALL) NOPASSWD: ALL

Do not require a tty for deploy user

Defaults:deploy !requiretty

Note

Ensure that the script you want to run has execute rights (> chmod a+x my-deploy-script.sh)

About

A post receive hook server written in node to handle github or gitlab hooks.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published