From e6d814d60af67a2462325aa1481ecb4f3f4f426c Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Tue, 26 Sep 2017 13:24:29 +0200 Subject: [PATCH] activate production build & deployment * closes #6 --- _ci/build.sh | 4 ++-- _ci/deploy.sh | 2 +- gulpfile.babel.js | 6 ++---- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/_ci/build.sh b/_ci/build.sh index a33bfaf..a5f325e 100755 --- a/_ci/build.sh +++ b/_ci/build.sh @@ -36,11 +36,11 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; th ## elif [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then - gulp build --staging + gulp build --production else - gulp build --staging + gulp build --production fi; diff --git a/_ci/deploy.sh b/_ci/deploy.sh index 8797aee..45dcb3f 100755 --- a/_ci/deploy.sh +++ b/_ci/deploy.sh @@ -16,7 +16,7 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; th elif [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then #gulp deploy --live; - gulp deploy --beta; + gulp deploy --live; else diff --git a/gulpfile.babel.js b/gulpfile.babel.js index 6d562ba..1d7a683 100644 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js @@ -47,7 +47,7 @@ const SRC = `${site.source}/` const DIST = `${site.destination}/` // deployment -const S3BUCKET = 'beta.ipdb.io' +const S3BUCKET = 'ipdb.io' const S3REGION = 'eu-central-1' const S3BUCKET_BETA = 'beta.ipdb.io' const S3REGION_BETA = 'eu-central-1' @@ -315,10 +315,8 @@ const deployBanner = (done) => { if ($.util.env.live) { deployTarget = 'Live' - } else if ($.util.env.beta) { - deployTarget = 'Beta' } else { - deployTarget = 'Gamma' + deployTarget = 'Beta' } if (($.util.env.live || $.util.env.beta || $.util.env.gamma) === true) {