travis deploy script fix

pull/23/head
Szekeres Bálint 2018-07-01 17:12:20 +02:00
parent 0443b92c88
commit d59edaff5c
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
#!/bin/bash
npm ci --production
npm run build:prod
find public -type f -name "*.html" -exec sed -i -e "s/COMMIT_HASH/$TRAVIS_COMMIT/" {} \;
rsync \
@ -12,7 +13,7 @@ rsync \
--recursive \
--stats \
--verbose \
--exclude="/.git*" \
--exclude="/node_modules*" \
--exclude="/cypress/videos*" \
./ \
www-data@nginxconfig.io:/var/www/nginxconfig.io/