Added publish and watch scripts

This commit is contained in:
Oliver Davies 2015-11-30 23:10:03 +00:00
parent 8a98211964
commit 101a7669eb
2 changed files with 10 additions and 0 deletions

7
publish.sh Executable file
View file

@ -0,0 +1,7 @@
#!/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@oliverdavies.uk:/var/www/vhosts/oliverdavies/public
if [ $? -ne 0 ]; then echo "Could not publish the site"; exit 1; fi

3
watch.sh Executable file
View file

@ -0,0 +1,3 @@
#!/bin/bash
./vendor/bin/sculpin generate --server --watch --clean --no-interaction