From ed253dfe55fda388bc7f7e598a3913a519659418 Mon Sep 17 00:00:00 2001 From: Yegor Bugayenko Date: Fri, 18 Oct 2019 08:34:17 +0800 Subject: [PATCH] #46 dokku --- .rultor.yml | 4 ++-- deploy.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.rultor.yml b/.rultor.yml index 923733b..29b49f9 100644 --- a/.rultor.yml +++ b/.rultor.yml @@ -24,14 +24,14 @@ release: git commit -am "${tag}" cp ../settings.xml settings.xml mvn clean package -Pqulice -Pjare --errors --batch-mode - git remote add heroku git@heroku.com:jareio.git + git remote add dokku dokku@www.jare.io:jare mkdir ~/.ssh mv ../id_rsa ../id_rsa.pub ~/.ssh chmod -R 600 ~/.ssh/* echo -e "Host *\n StrictHostKeyChecking no\n UserKnownHostsFile=/dev/null" > ~/.ssh/config git add settings.xml git fetch - git commit -m 'settings.xml' && git push -f heroku $(git symbolic-ref --short HEAD):master && git reset HEAD~1 + git commit -m 'settings.xml' && git push -f dokku $(git symbolic-ref --short HEAD):master && git reset HEAD~1 curl -f --connect-timeout 15 --retry 5 --retry-delay 30 http://www.jare.io > /dev/null # mvn clean site-deploy -Psite --batch-mode --settings ../settings.xml commanders: diff --git a/deploy.sh b/deploy.sh index 5c90c4f..053c296 100755 --- a/deploy.sh +++ b/deploy.sh @@ -4,7 +4,7 @@ set -e cd $(dirname $0) cp /code/home/assets/jare/settings.xml . git add settings.xml -git commit -m 'settings.xml for heroku' +git commit -m 'settings.xml for dokku' trap 'git reset HEAD~1 && rm settings.xml' EXIT -git push heroku master -f +git push dokku master -f