Skip to content

Commit

Permalink
Merge pull request #43 from typeoneerror/deploy-blueprint-update
Browse files Browse the repository at this point in the history
Switch to pipeline.disabled from deprecated plugins
  • Loading branch information
lukemelia authored Jan 30, 2018
2 parents 6b1e7a6 + 0f1a0ba commit 055e277
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions blueprints/lightning-deploy-config/files/config/deploy.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var VALID_DEPLOY_TARGETS = [ //update these to match what you call your deployment targets
var VALID_DEPLOY_TARGETS = [ // update these to match what you call your deployment targets
'dev',
'qa',
'prod'
Expand All @@ -15,14 +15,20 @@ module.exports = function(deployTarget) {
prefix: '<%= dasherizedPackageName %>'
}
};

if (VALID_DEPLOY_TARGETS.indexOf(deployTarget) === -1) {
throw new Error('Invalid deployTarget ' + deployTarget);
}

if (deployTarget === 'dev') {
ENV.build.environment = 'development';
ENV.redis.url = process.env.REDIS_URL || 'redis://0.0.0.0:6379/';
ENV.plugins = ['build', 'redis']; // only care about deploying index.html into redis in dev
// only care about deploying index.html into redis in dev
ENV.pipeline = {
disabled: {
allExcept: ['build', 'redis']
}
}
}

if (deployTarget === 'qa' || deployTarget === 'prod') {
Expand Down

0 comments on commit 055e277

Please sign in to comment.