Added publish and watch scripts
This commit is contained in:
parent
8a98211964
commit
101a7669eb
7
publish.sh
Executable file
7
publish.sh
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
./vendor/bin/sculpin generate --env=prod --clean --no-interaction
|
||||
if [ $? -ne 0 ]; then echo "Could not generate the site"; exit 1; fi
|
||||
|
||||
rsync -av output_prod/ deployment@oliverdavies.uk:/var/www/vhosts/oliverdavies/public
|
||||
if [ $? -ne 0 ]; then echo "Could not publish the site"; exit 1; fi
|
Loading…
Reference in a new issue