diff --git a/publish.sh b/publish.sh new file mode 100755 index 00000000..b8cf2e41 --- /dev/null +++ b/publish.sh @@ -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 diff --git a/watch.sh b/watch.sh new file mode 100755 index 00000000..01bb48ff --- /dev/null +++ b/watch.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +./vendor/bin/sculpin generate --server --watch --clean --no-interaction