Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4830

External config file, how?

$
0
0

@kevinkleine wrote:

How can I tell my Ember app to require/import an external file with config settings?

To be clear, I want my post-build app to look for a simple config file and - if it exists - import it and overwrite the default settings. The end goal here would be to have multiple instances of one app running in several places, with different settings that I can change on the fly.

Thanks in advance!

Kevin

PS
Ideally, the config file would have structure like:

module.exports = {
'settingName' : 'val'
};

so, no Ember specific code.

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4830

Trending Articles