added .travis_deploy.sh
parent
8a8a2d796b
commit
3bee212d2b
|
@ -25,9 +25,6 @@ before_deploy:
|
|||
|
||||
deploy:
|
||||
provider: script
|
||||
script:
|
||||
- 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="/node_modules*" --exclude="/cypress/videos*" ./ www-data@nginxconfig.io:/var/www/nginxconfig.io/
|
||||
script: bash .travis_deploy.sh
|
||||
on:
|
||||
branch: master
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
#!/bin/bash
|
||||
|
||||
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="/node_modules*" \
|
||||
--exclude="/cypress/videos*" \
|
||||
./ \
|
||||
www-data@nginxconfig.io:/var/www/nginxconfig.io/
|
Loading…
Reference in New Issue