Skip to content

Instantly share code, notes, and snippets.

@mwawrusch
Created November 15, 2013 17:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mwawrusch/7488099 to your computer and use it in GitHub Desktop.
Save mwawrusch/7488099 to your computer and use it in GitHub Desktop.
###
# Load modules
###
_ = require 'underscore'
path = require 'path'
config = require 'nconf'
###
# Setup version
###
require('pkginfo')(module, 'version')
###
# Configure environment
###
env = process.env.NODE_ENV or 'development'
###
# Load config
###
config.file file: path.join(__dirname, '../config/env', env + '.json')
###
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment