1
0
mirror of https://github.com/bigchaindb/site.git synced 2024-11-22 09:46:57 +01:00

introduce gamma

This commit is contained in:
Matthias Kretschmann 2017-03-07 16:24:23 +01:00
parent 600756c32e
commit 20d5e8ded4
Signed by: m
GPG Key ID: BD3C1F3EDD7831FC
2 changed files with 26 additions and 3 deletions

View File

@ -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

View File

@ -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({