- git
- node v4
- pm2 (
npm install -g pm2
) - forever (
npm install -g forever
)
npm install
- start
deployBot.js
usingforever
, then done.
The default trigger url is http://yourdomain:3000/deploy/:appName/:branch
###for example:
POST
request send tohttp://yourdomain:3000/deploy/helloworld/master
- deployBot will go to
helloworld
repository, checkout tomaster
branch - then
git pull
to update code