Skip to content
This repository has been archived by the owner on Nov 14, 2018. It is now read-only.

Commit

Permalink
Merge pull request #21 from tedconf/config-build-env
Browse files Browse the repository at this point in the history
Allow build env to be configured
  • Loading branch information
samselikoff committed Aug 20, 2015
2 parents 8e14285 + 7da098d commit 4db613d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/commands/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = _.extend(BaseCommand, {
run: function(commandOptions, rawArgs) {
var environment = commandOptions.environment;
var config = this.getConfigForEnvironment(environment);

var buildEnvironment = commandOptions['build-environment'] || (config.build && config.build.environment) || environment;
var DeployIndexTask = require('../tasks/deploy-index');
var AssetsTask = require('../tasks/assets');
var BuildTask = this.tasks.Build;
Expand All @@ -25,7 +25,7 @@ module.exports = _.extend(BaseCommand, {
});

var buildOptions = {
environment: environment,
environment: buildEnvironment,
outputPath: "dist/",
watch: false,
disableAnalytics: false
Expand Down

0 comments on commit 4db613d

Please # to comment.