pull request(or git push) trigger create staging each branch
** Require **
dokku
ruby 2.1
sinatra
cd /home/dokku
sudo -u dokku git clone https://github.com/kiyo-e/dokku-github-webhook.git
cd dokku-github-webhook
You should be enable pull from github.
fix servername on nginx.conf
set github webhook to servername
push or Pull Request event
cd /home/dokku/dokku-github-webhook
sudo ./bootstrap.sh
if you need default env(RAILS_ENV or DATABASE_URL, etc...), you use dokku-default-env plugin.