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.sh
2015-05-01 12:11:04 +01:00

11 lines
330 B
Bash
Executable file

#!/bin/bash
SERVER_NAME="root@212.111.40.238"
DOCROOT="/var/www/html/oliverdavies.co.uk/htdocs"
sculpin generate --env=prod
if [ $? -ne 0 ]; then echo "Could not generate the site"; exit 1; fi
rsync -avze 'ssh' --delete output_prod/ ${SERVER_NAME}:${DOCROOT}
if [ $? -ne 0 ]; then echo "Could not publish the site"; exit 1; fi