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-12-20 23:52:16 +00:00

8 lines
291 B
Bash
Executable file

#!/bin/bash
./vendor/bin/sculpin generate --env=prod
if [ $? -ne 0 ]; then echo "Could not generate the site"; exit 1; fi
rsync -av --delete output_prod/ deployment@www.oliverdavies.uk:/var/www/vhosts/oliverdavies/public
if [ $? -ne 0 ]; then echo "Could not publish the site"; exit 1; fi