diff --git a/.travis.yml b/.travis.yml index 739e53ef..8f492fe5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -48,4 +48,4 @@ notifications: # FIXME this needs refinement, obvs after_success: - - "test $EMBER_VERSION == 'default' && test $TRAVIS_PULL_REQUEST && ember deploy prod --verbose" + - "test $EMBER_VERSION == 'default' && test $TRAVIS_PULL_REQUEST && ember deploy pull-request --verbose" diff --git a/config/deploy.js b/config/deploy.js index 7480b372..4ae5057b 100644 --- a/config/deploy.js +++ b/config/deploy.js @@ -1,7 +1,7 @@ var VALID_DEPLOY_TARGETS = [ //update these to match what you call your deployment targets 'dev', 'qa', - 'prod' + 'pull-request' ]; module.exports = function(deployTarget) { @@ -26,7 +26,7 @@ module.exports = function(deployTarget) { ENV.plugins = ['build', 'redis']; // only care about deploying index.html into redis in dev } - if (deployTarget === 'qa' || deployTarget === 'prod') { + if (deployTarget === 'qa' || deployTarget === 'pull-request') { ENV.build.environment = 'production'; ENV.s3.accessKeyId = process.env.AWS_KEY; ENV.s3.secretAccessKey = process.env.AWS_SECRET; @@ -36,7 +36,7 @@ module.exports = function(deployTarget) { ENV.redis.url = process.env.QA_REDIS_URL; } - if (deployTarget === 'prod') { + if (deployTarget === 'pull-request') { ENV.redis.url = process.env.REDIS_URL; ENV.github = {