Created
November 15, 2013 17:19
-
-
Save mwawrusch/7488099 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
# 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