Skip to content

Commit

Permalink
#46 dokku
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Oct 18, 2019
1 parent ef95ce0 commit ed253df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .rultor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ed253df

Please sign in to comment.