Skip to content

Configuring via env variables

Chris edited this page Aug 20, 2015 · 2 revisions

If you happen to run the same code on your laptop (dev mode) and on the server, you may use env variables to configure the tool (editing files other than config.json is not required). You can add those variables to ~/bashrc on your local instance.

The list of supported variables is below:

###Google Social login must be enabled in the stormpath init configuration, in user-provider.js. WM_GOOGLE_CLIENT_ID WM_GOOGLE_CLIENT_SECRET

###Mailchimp It is automatically enabled once those two keys are configured. WM_MAILCHIMP_API_KEY WM_MAILCHIMP_LIST_ID

###Stormpath Needs to be configured in config.json WM_STORMPATH_API_KEY_ID WM_STORMPATH_API_KEY_SECRET WM_STORMPATH_APPLICATION WM_STORMPATH_SECRET_KEY

Clone this wiki locally