Update publish.sh

This commit is contained in:
Oliver Davies 2015-12-06 03:03:02 +00:00
parent 8839994d1b
commit 4e912918c3

View file

@ -3,5 +3,5 @@
./vendor/bin/sculpin generate --env=prod --clean --no-interaction ./vendor/bin/sculpin generate --env=prod --clean --no-interaction
if [ $? -ne 0 ]; then echo "Could not generate the site"; exit 1; fi if [ $? -ne 0 ]; then echo "Could not generate the site"; exit 1; fi
rsync -av output_prod/ deployment@oliverdavies.uk:/var/www/vhosts/oliverdavies/public rsync -av output_prod/ deployment@www.oliverdavies.uk:/var/www/vhosts/oliverdavies/public
if [ $? -ne 0 ]; then echo "Could not publish the site"; exit 1; fi if [ $? -ne 0 ]; then echo "Could not publish the site"; exit 1; fi