|
|
|
@ -22,9 +22,10 @@ before_deploy:
|
|
|
|
|
- eval "$(ssh-agent -s)"
|
|
|
|
|
- chmod 600 /tmp/deploy_rsa
|
|
|
|
|
- ssh-add /tmp/deploy_rsa
|
|
|
|
|
- npm run build:prod
|
|
|
|
|
|
|
|
|
|
deploy:
|
|
|
|
|
on:
|
|
|
|
|
branch: master
|
|
|
|
|
provider: script
|
|
|
|
|
script: ssh -q -l root nginxconfig.io "sudo -u www-data -H sh -c 'cd /var/www/nginxconfig.io; git reset --hard && git pull origin master && find . -type f -name '*.html' -exec sed -i -e \"s/COMMIT_HASH/$TRAVIS_COMMIT/\" {} \;'"
|
|
|
|
|
on:
|
|
|
|
|
branch: master
|
|
|
|
|