Added publish and watch scripts
This commit is contained in:
parent
8a98211964
commit
101a7669eb
2 changed files with 10 additions and 0 deletions
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
|
3
watch.sh
Executable file
3
watch.sh
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
./vendor/bin/sculpin generate --server --watch --clean --no-interaction
|
Loading…
Add table
Add a link
Reference in a new issue