10 lines
407 B
Bash
Executable file
10 lines
407 B
Bash
Executable file
#!/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
|