diff --git a/README.md b/README.md index 8374983..f9ffcbd 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ [![Build Status](https://travis-ci.com/ascribe/bigchain-website.svg?token=3psqw6c8KMDqfdGQ2x6d&branch=master)](https://travis-ci.com/ascribe/bigchain-website) -[Live](https://www.bigchaindb.com) | [Beta](https://beta.bigchaindb.com) | [Styleguide](https://www.bigchaindb.com/styleguide/) +[Live](https://www.bigchaindb.com) | [Beta](http://beta.bigchaindb.com) | [Gamma](http://gamma.bigchaindb.com) | [Styleguide](https://www.bigchaindb.com/styleguide/) ## Development @@ -64,7 +64,7 @@ This is all that is needed to authenticate with AWS if you've setup your credent If you've set them up as another profile, say `[bigchain]` you can grab those credentials by using the `AWS_PROFILE` variable like so: ```bash -AWS_PROFILE=bigchain gulp deploy:live +AWS_PROFILE=bigchain gulp deploy --live ``` In case that you get authentication errors or need an alternative way to authenticate with AWS, check out the [AWS documentation](http://docs.aws.amazon.com/AWSJavaScriptSDK/guide/node-configuring.html). @@ -82,6 +82,14 @@ gulp build --production gulp deploy --beta ``` +There's also a second beta deployment target called gamma under http://gamma.bigchaindb.com: + +```bash +# deploy contents of /_dist to gamma +gulp deploy --gamma +``` + + ### Production build & live deployment ```bash diff --git a/gulpfile.js b/gulpfile.js index ebca383..b6dea21 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -60,7 +60,9 @@ var SRC = '_src/', var S3BUCKET = 'www.bigchaindb.com', S3REGION = 'eu-central-1', S3BUCKET_BETA = 'beta.bigchaindb.com', - S3REGION_BETA = 'eu-central-1'; + S3REGION_BETA = 'eu-central-1', + S3BUCKET_GAMMA = 'gamma.bigchaindb.com', + S3REGION_GAMMA = 'eu-central-1'; // SVG sprite var SPRITECONFIG = { @@ -343,6 +345,7 @@ gulp.task('build', function(done) { // // gulp deploy --live // gulp deploy --beta +// gulp deploy --gamma // gulp.task('deploy', function() { @@ -371,6 +374,18 @@ gulp.task('deploy', function() { $.util.log($.util.colors.green(' Deploying to Beta... ')); $.util.log($.util.colors.gray(" ------------------------------------------")); } + if ($.util.env.gamma === true) { + var publisher = $.awspublish.create({ + params: { "Bucket": S3BUCKET_GAMMA }, + "accessKeyId": process.env.AWS_GAMMA_ACCESS_KEY, + "secretAccessKey": process.env.AWS_GAMMA_SECRET_KEY, + "region": S3REGION_GAMMA + }); + + $.util.log($.util.colors.gray(" ------------------------------------------")); + $.util.log($.util.colors.green(' Deploying to Gamma... ')); + $.util.log($.util.colors.gray(" ------------------------------------------")); + } return gulp.src(DIST + '**/*') .pipe($.awspublishRouter({