Tool for deploy your project on you VPS server via Github Webhooks
- Configurate your
config.json - Run
npm run startas background process (Example: onpm2) - Add your hook names and pathes to
config.reps - Add
webhookon Github with link on your server / domain - Add
deploy.jsonto your rep folder. - Add
stepsindeploy.json - Profit!
If you change config.json then webhook listener automaticaly reboot.
{
"port": 9000,
"deploy_name": "deploy.json",
"deploy_timeout": 900000,
"reps": {
"hookeploy": "/var/www/hookeploy",
"helloworld": "/var/www/helloworld"
}
}port- webhook listener portdeploy_name- default name of deploy config on your repsdeploy_timeout- max time for deploy (default 15 min)reps- array withhooknameandpathto rep
[
"bin/stop.sh",
"bin/start.sh"
]This is json array.
These are steps to .sh files.
They will be executed in turn and synchronously.
- Add linux service