From dff696aa5e7249974417561148ee0d7d57ce35c5 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 13 Jan 2016 00:15:26 +0000 Subject: [PATCH] Moved scripts --- publish-staging.sh | 12 ------------ publish.sh => scripts/publish.sh | 8 ++++---- watch.sh => scripts/watch.sh | 0 3 files changed, 4 insertions(+), 16 deletions(-) delete mode 100755 publish-staging.sh rename publish.sh => scripts/publish.sh (74%) rename watch.sh => scripts/watch.sh (100%) diff --git a/publish-staging.sh b/publish-staging.sh deleted file mode 100755 index 7a7a5e64..00000000 --- a/publish-staging.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash - -ENV=staging -DEPLOY_USER=deployment -DEPLOY_HOST=oliverdavies.s.oliverdavies.uk -DEPLOY_PATH=/var/www/oliverdavies/public - -./vendor/bin/sculpin generate --env=${ENV} --clean --no-interaction -if [ $? -ne 0 ]; then echo "Could not generate the site"; exit 1; fi - -rsync -av --delete output_${ENV}/ ${DEPLOY_USER}@${DEPLOY_HOST}:${DEPLOY_PATH} -if [ $? -ne 0 ]; then echo "Could not publish the site"; exit 1; fi diff --git a/publish.sh b/scripts/publish.sh similarity index 74% rename from publish.sh rename to scripts/publish.sh index 4ba50c83..48ef0942 100755 --- a/publish.sh +++ b/scripts/publish.sh @@ -1,9 +1,9 @@ #!/bin/bash -ENV=prod -DEPLOY_USER=deployment -DEPLOY_HOST=www.oliverdavies.uk -DEPLOY_PATH=/var/www/oliverdavies/public +export ENV=prod +export DEPLOY_USER=deployment +export DEPLOY_HOST=www.oliverdavies.uk +export DEPLOY_PATH=/var/www/oliverdavies/public # Rebuild assets. gulp build --production diff --git a/watch.sh b/scripts/watch.sh similarity index 100% rename from watch.sh rename to scripts/watch.sh