Created
June 20, 2017 11:44
-
-
Save Blackening999/955318ea8e1549cee59d9a0f1aa478d7 to your computer and use it in GitHub Desktop.
testapp/config/deploy.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* jshint node: true */ | |
var VALID_DEPLOY_TARGETS = [ //update these to match what you call your deployment targets | |
'production' | |
]; | |
module.exports = function(deployTarget) { | |
var ENV = { | |
build: {} | |
// include other plugin configuration that applies to all deploy targets here | |
}; | |
if (VALID_DEPLOY_TARGETS.indexOf(deployTarget) === -1) { | |
throw new Error('Invalid deployTarget ' + deployTarget); | |
} | |
if (deployTarget === 'production') { | |
ENV["redis"] = { | |
host: '444.555.89.19', | |
port: 6379, | |
password: 'mysupersecretredispassword', | |
keyPrefix: 'testapp100500-bucket' | |
} | |
ENV["s3"] = { | |
accessKeyId: 'AMAZON ACCESS KEY', | |
secretAccessKey: 'AMAZON SECRET KEY', | |
bucket: 'testapp100500-bucket', | |
region: 'us-east-1', | |
filePattern: '**/*.{js,css,png,gif,ico,jpg,map,xml,txt,svg,swf,eot,ttf,woff,woff2,html}', | |
} | |
} | |
return ENV; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment