Dynamic Meteor settings at build / run time

Hi everyone,

While building a production Meteor app that I will both host on a server and provide on Gitlab so people can build and run it on their local machines, I decided to create a dynamic Meteor settings script so that no sensitive data gets accidentally committed to Gitlab, etc. Basically it just prompts the user for their sensitive data in the terminal when they run the build script, then builds the Meteor app, and then runs it on the server with the Meteor settings added to Node environment.

Hope you like it. If you see any problems / noob errors (I am not a command line expert!) please comment!

Cheers,
Tom

2 Likes

Great idea!

One suggestion, you can save build time and unzip time by telling meteor to build to a directory:

meteor build --directory ../my_example_app_build
cd ../my_example_app_build
2 Likes