Skip to content

Instantly share code, notes, and snippets.

@dnprock
Created September 24, 2013 18:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dnprock/6689493 to your computer and use it in GitHub Desktop.
Save dnprock/6689493 to your computer and use it in GitHub Desktop.
Different configs for meteor dev/staging/production environments.
getS3Bucket = function() {
var host = document.location.host;
if (host === 'localhost:3000') {
return 'myapp-dev';
} else if (host === 'myapp.meteor.com') {
return 'myapp-staging';
} else if (host === 'myapp.com') {
return 'myapp-production';
}
}
function getS3Bucket() {
if (Meteor.absoluteUrl() === 'http://localhost:3000/') {
return 'myapp-dev';
} else if (Meteor.absoluteUrl() === 'http://myapp.meteor.com/') {
return 'myapp-staging';
} else if (Meteor.absoluteUrl() === 'http://myapp.com/') {
return 'myapp-production';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment