This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
oliverdavies.uk-old-sculpin/publish-staging.sh

13 lines
418 B
Bash
Raw Normal View History

2015-12-29 08:43:30 +00:00
#!/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