Skip to content

Instantly share code, notes, and snippets.

@steveburkett
Created October 23, 2014 16:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steveburkett/36ab3703ccaff489dca0 to your computer and use it in GitHub Desktop.
Save steveburkett/36ab3703ccaff489dca0 to your computer and use it in GitHub Desktop.
module.exports = function(grunt) {
var deployConfiguration;
var s3_bucket;
if (grunt.option('release')) {
deployConfiguration = grunt.file.readYAML("deployment.yml");
s3_bucket = 'ember-build-dsh';
} else {
deployConfiguration = grunt.file.readYAML("deployment.development.yml");
s3_bucket = 'ember-dev-dsh';
};
grunt.initConfig({
autobots: {
distDir: 'dist',
s3: {
accessKeyId: deployConfiguration.s3_access_key_id,
secretAccessKey: deployConfiguration.s3_secret_access_key,
bucket: s3_bucket
},
redis: {
host: deployConfiguration.redis_host,
port: deployConfiguration.redis_port,
password: deployConfiguration.redis_password
}
}
});
grunt.loadNpmTasks('grunt-autobots');
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment