From f66c31ca0713355f6e695ff51e0b510b8bc5a7c8 Mon Sep 17 00:00:00 2001 From: Edgars Beigarts Date: Fri, 25 Aug 2017 09:57:43 +0300 Subject: [PATCH] Update readme --- README.md | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 732e733..65cd3ee 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Deployer -Deploy [dokku](http://dokku.viewdocs.io/dokku/) applications using [GitHub Deployments](https://developer.github.com/v3/repos/deployments/). +Deploy [dokku](http://dokku.viewdocs.io/dokku/) applications using [GitHub Deployments API](https://developer.github.com/v3/repos/deployments/). 1. Listen/poll new GitHub deployments 2. Create pending GitHub deployment status and empty Gist @@ -40,6 +40,31 @@ deployer -h GitHub username (required) ``` +## Installation + +Install `deployer` on dokku server: + +```bash +$ su - dokku +$ curl -L -o deployer https://github.com/mak-it/deployer/releases/download/v0.1.1/deployer-linux-amd64 +$ chmod +x deployer +``` + +Start `deployer` on system reboot using `cron` and `screen`: + +```bash +$ su - dokku +$ echo "@reboot /usr/bin/screen -d -m /home/dokku/deployer -u ghuser -p ghpass -org mak-it -repo myapp -env demo -app myapp-demo -sleep 30 +" | crontab - +``` + +Start `deployer` in `screen`: + +```bash +$ su - dokku +$ /usr/bin/screen -d -m /home/dokku/deployer -u ghuser -p ghpass -org mak-it -repo myapp -env demo -app myapp-demo -sleep 30 +``` + ## Example Trigger deployment from developer's machine: