1
0
mirror of https://github.com/ipdb/website.git synced 2024-11-22 01:26:52 +01:00

activate production build & deployment

* closes #6
This commit is contained in:
Matthias Kretschmann 2017-09-26 13:24:29 +02:00
parent 776e8b7b5f
commit e6d814d60a
Signed by: m
GPG Key ID: 606EEEF3C479A91F
3 changed files with 5 additions and 7 deletions

View File

@ -36,11 +36,11 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; th
## ##
elif [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then elif [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
gulp build --staging gulp build --production
else else
gulp build --staging gulp build --production
fi; fi;

View File

@ -16,7 +16,7 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; th
elif [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then elif [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
#gulp deploy --live; #gulp deploy --live;
gulp deploy --beta; gulp deploy --live;
else else

View File

@ -47,7 +47,7 @@ const SRC = `${site.source}/`
const DIST = `${site.destination}/` const DIST = `${site.destination}/`
// deployment // deployment
const S3BUCKET = 'beta.ipdb.io' const S3BUCKET = 'ipdb.io'
const S3REGION = 'eu-central-1' const S3REGION = 'eu-central-1'
const S3BUCKET_BETA = 'beta.ipdb.io' const S3BUCKET_BETA = 'beta.ipdb.io'
const S3REGION_BETA = 'eu-central-1' const S3REGION_BETA = 'eu-central-1'
@ -315,10 +315,8 @@ const deployBanner = (done) => {
if ($.util.env.live) { if ($.util.env.live) {
deployTarget = 'Live' deployTarget = 'Live'
} else if ($.util.env.beta) {
deployTarget = 'Beta'
} else { } else {
deployTarget = 'Gamma' deployTarget = 'Beta'
} }
if (($.util.env.live || $.util.env.beta || $.util.env.gamma) === true) { if (($.util.env.live || $.util.env.beta || $.util.env.gamma) === true) {