Moved scripts
This commit is contained in:
parent
0c7550c0eb
commit
dff696aa5e
3 changed files with 4 additions and 16 deletions
18
scripts/publish.sh
Executable file
18
scripts/publish.sh
Executable file
|
@ -0,0 +1,18 @@
|
|||
#!/bin/bash
|
||||
|
||||
export ENV=prod
|
||||
export DEPLOY_USER=deployment
|
||||
export DEPLOY_HOST=www.oliverdavies.uk
|
||||
export DEPLOY_PATH=/var/www/oliverdavies/public
|
||||
|
||||
# Rebuild assets.
|
||||
gulp build --production
|
||||
|
||||
./vendor/bin/sculpin generate --env=${ENV} --clean --no-interaction
|
||||
if [ $? -ne 0 ]; then echo "Could not generate the site"; exit 1; fi
|
||||
|
||||
# Minify HTML.
|
||||
gulp minify-prod-html
|
||||
|
||||
rsync -av --delete output_${ENV}/ ${DEPLOY_USER}@${DEPLOY_HOST}:${DEPLOY_PATH}
|
||||
if [ $? -ne 0 ]; then echo "Could not publish the site"; exit 1; fi
|
3
scripts/watch.sh
Executable file
3
scripts/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