From e56d195338f04ac607792e857e48273198a6656d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szekeres=20Ba=CC=81lint?= Date: Sun, 6 Jan 2019 15:53:21 +0100 Subject: [PATCH] travis beta deploy --- .travis.yml | 15 ++++++++++----- .travis_deploy.sh | 2 +- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index cfd278b..335a95d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,8 +24,13 @@ before_deploy: - ssh-add /tmp/deploy_rsa deploy: - provider: script - script: bash .travis_deploy.sh - skip_cleanup: true - on: - branch: master + - provider: script + script: bash .travis_deploy.sh /var/www/nginxconfig.io/ + skip_cleanup: true + on: + branch: master + - provider: script + script: bash .travis_deploy.sh var/www/beta.nginxconfig.io/ + skip_cleanup: true + on: + branch: beta diff --git a/.travis_deploy.sh b/.travis_deploy.sh index fae9a33..619bf6b 100755 --- a/.travis_deploy.sh +++ b/.travis_deploy.sh @@ -16,4 +16,4 @@ rsync \ --exclude="/.git*" \ --exclude="/node_modules*" \ ./ \ - www-data@nginxconfig.io:/var/www/nginxconfig.io/ + www-data@nginxconfig.io:$1