oliverdavies.uk/publish.sh
2015-12-07 19:45:05 +00:00

8 lines
307 B
Bash
Executable file

#!/bin/bash
./vendor/bin/sculpin generate --env=prod --clean --no-interaction
if [ $? -ne 0 ]; then echo "Could not generate the site"; exit 1; fi
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