Skip to content

Instantly share code, notes, and snippets.

@famanson
Created July 19, 2015 04:19
Show Gist options
  • Save famanson/0b90b94f74b38846699c to your computer and use it in GitHub Desktop.
Save famanson/0b90b94f74b38846699c to your computer and use it in GitHub Desktop.
Example Ember deploy.js
// deploy.js
/* jshint node: true */
var API_KEYS = require('./api-keys.json');
module.exports = {
staging: {
buildEnv: 'staging',
store: {
type: 'redis', // the default store is 'redis'
host: 'staging',
port: 6379
},
assets: {
accessKeyId: API_KEYS['s3']['accessKeyId'],
secretAccessKey: API_KEYS['s3']['secretAccessKey'],
bucket: 'staging-assets', // S3 staging assets
exclude: ['.DS_Store', '*-test.js'], // defaults to empty array
region: 'eu-west-1'
}
},
production: {
store: {
type: 'redis',
host: 'production',
port: 6379
},
assets: {
accessKeyId: API_KEYS['s3']['accessKeyId'],
secretAccessKey: API_KEYS['s3']['secretAccessKey'],
bucket: 'assets',
exclude: ['.DS_Store', '*-test.js'], // defaults to empty array
region: 'eu-west-1'
}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment