Skip to content

Commit

Permalink
Script de déploiement
Browse files Browse the repository at this point in the history
  • Loading branch information
chikamichi committed Sep 29, 2018
1 parent f684484 commit 1846e3e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions deploy
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh

if [ -z "$(git status --porcelain)" ]; then
git checkout preprod
git rebase develop
git push -f origin preprod
git push -f dokku preprod:master
echo "Preprod is being deployed (static build takes a few minutes to get generated)"
else
echo "Cannot deploy; there are pending edits! (commit or stash)"
fi

0 comments on commit 1846e3e

Please sign in to comment.