Skip to content

Instantly share code, notes, and snippets.

@tsabat
Created September 19, 2013 18:29
Show Gist options
  • Save tsabat/6627794 to your computer and use it in GitHub Desktop.
Save tsabat/6627794 to your computer and use it in GitHub Desktop.

node-config requires an environment variable be set.

instead of me doing so at the env level, just put this before you var config = require('config');

process.env['NODE_CONFIG_RUNTIME_JSON'] = '/tmp/runtime.json';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment