Tool for deploy your project on you VPS server via Github Webhooks
- Configurate your
config.json
- Run
npm run start
as background process (Example: onpm2
) - Add your hook names and pathes to
config.reps
- Add
webhook
on Github with link on your server / domain - Add
deploy.json
to your rep folder. - Add
steps
indeploy.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 withhookname
andpath
to 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