It listens to bitbucket webhook push events and run commands for repositories configured in config.js. Currently, it runs on GNU/Linux and BSD OSes only.
- nodejs >= 0.10.x
- npm >= 1.4.x
cd any-installation-dir
git clone https://github.com/NewWaveWeb/bitbucket-webhook-deployer.git
cd bitbucket-webhook-deployer
npm install
cp config.json.example /path/to/your/config.json
then set up your repositories:
{
"port" : 8889,
"repositories" : {
"[repository name]" : {
"name":"[my super cool name]",
"basepath" : "[path to where the command will run]",
"command" : "[the command to run]",
"branch" : "[what branch to react to]"
}
}
}
cp configDir.js.dist configDir.js
then setup the path to your config.json file:
module.exports="/path/to/your/config.json";
node main.js
starts the startup script manually
- Set the webhook url:
http://your.webhook.domain:port