How to build an app and use Meteor.settings


#1

hello meteorians!

I have been developing an app with a config file that it’s going to be modified by an external app.

my question is, how do I build my app and still been able to use Meteor.settings???


#2

I solve this problem by using METEOR_SETTINGS environment variable
originally my config.json file was in private/ folder so after building my app I run this

export METEOR_SETTINGS="cat programs/server/assets/app/config.json" and then follow instruction on README


#3

meteor --settings settings.json


#4

@corvid that’s for the development stage. but after you do meteor build you’ll end up with a tarball that you’ll use for production :-p