Created
September 24, 2013 18:53
-
-
Save dnprock/6689493 to your computer and use it in GitHub Desktop.
Different configs for meteor dev/staging/production environments.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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