mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-08-08 22:27:26 +08:00
added .travis_deploy.sh
This commit is contained in:
18
.travis_deploy.sh
Executable file
18
.travis_deploy.sh
Executable file
@@ -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/
|
Reference in New Issue
Block a user