nginxconfig.io/.travis_deploy.sh
2019-01-06 15:53:21 +01:00

19 lines
373 B
Bash
Executable file

#!/bin/bash
rm public/assets/css/app.min.css*
npm run build:prod
find public -type f -name "*.html" -exec sed -i -e "s/COMMIT_HASH/$TRAVIS_COMMIT/" {} \;
rsync \
--checksum \
--delete \
--delete-after \
--force \
--ignore-errors \
--links \
--recursive \
--stats \
--verbose \
--exclude="/.git*" \
--exclude="/node_modules*" \
./ \
www-data@nginxconfig.io:$1