Skip to content
This repository has been archived by the owner on Sep 12, 2022. It is now read-only.

honeymaro/webHooker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webHooker

this is a simple git web hooker written in node.js.

How to use:

  • clone and install this project.
git clone https://github.com/honeymaro/webHooker.git
cd webHooker
npm install
  • open and edit config.json
{
  "port": 3030, // type the port number for which you want to receive a response.
  "url": "/myWebHookTest" , // Enter the address for the webhook call.
  "scriptFile": "pull.sh" // The shell code to execute when webhook is called.
}
  • example of pull.sh(for linux)
#!/bin/sh
cd /home/user/project
git pull
sudo kill $(lsof -t -i:80)
nohup npm start
  • Add a webhook definition from the git service, such as GitHub or Bitbucket.

  • Start!

npm start

About

git web hooker written with node.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published