sculpin-minified-css-test/publish.sh

10 lines
407 B
Bash
Raw Normal View History

2019-06-21 07:28:06 +00:00
#!/bin/bash
sculpin generate --env=prod
if [ $? -ne 0 ]; then echo "Could not generate the site"; exit 1; fi
# Add --delete right before "output_prod" to have rsync remove files that are
# deleted locally from the destination too. See README.md for an example.
rsync -avze 'ssh -p 4668' output_prod/ username@yoursculpinsite:public_html
if [ $? -ne 0 ]; then echo "Could not publish the site"; exit 1; fi