Make bin/deploy abort if there's an error with git push
For example, your push failed because there's upstream changes.
This commit is contained in:
parent
e93f864e0e
commit
2b709f61e0
1 changed files with 3 additions and 1 deletions
|
@ -1,9 +1,11 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e # Abort on failure
|
||||||
|
|
||||||
git push
|
git push
|
||||||
ssh debian@hickory.sfconservancy.org 'bash -s' << EOF
|
ssh debian@hickory.sfconservancy.org 'bash -s' << EOF
|
||||||
set -x # Show output
|
set -x # Show output
|
||||||
set -e # Abort on failure
|
set -e
|
||||||
cd /var/www/website
|
cd /var/www/website
|
||||||
sudo -u www-data git pull
|
sudo -u www-data git pull
|
||||||
export DJANGO_SETTINGS_MODULE=conservancy.settings.prod
|
export DJANGO_SETTINGS_MODULE=conservancy.settings.prod
|
||||||
|
|
Loading…
Reference in a new issue