Moved scripts

This commit is contained in:
Oliver Davies 2016-01-13 00:15:26 +00:00
parent 0c7550c0eb
commit dff696aa5e
3 changed files with 4 additions and 16 deletions

View file

@ -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

View file

@ -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