diff --git a/README.md b/README.md index a59a30e3ae..d8d04f6e34 100644 --- a/README.md +++ b/README.md @@ -45,9 +45,9 @@ This will clone the latest version of the MEAN.JS repository to a **meanjs** fol ### Downloading The Repository Zip File Another way to use the MEAN.JS boilerplate is to download a zip copy from the [master branch on github](https://github.com/meanjs/mean/archive/master.zip). You can also do this using `wget` command: ``` -$ wget https://github.com/meanjs/mean/archive/master.zip -O MEANJS.zip; unzip MEANJS.zip; rm MEANJS.zip +$ wget https://github.com/meanjs/mean/archive/master.zip -O meanjs.zip; unzip meanjs.zip; rm meanjs.zip ``` -You'll be able to rename **mean-master** after your project name and create your own git repo. +Don't forget to rename **mean-master** after your project name. ## Quick Install Once you've downloaded the boilerplate and installed all the prerequisites, you're just a few steps away from starting to develop you MEAN application. diff --git a/config/config.js b/config/config.js index 1823cae41c..afe7eb09c0 100644 --- a/config/config.js +++ b/config/config.js @@ -3,6 +3,7 @@ var _ = require('lodash'), utilities = require('./utilities'); +// Look for a valid NODE_ENV variable and if one cannot be found load the development NODE_ENV process.env.NODE_ENV = ~utilities.walk('./config/env', /(.*)\.js$/).map(function(file) { return file.split('/').pop().slice(0, -3); }).indexOf(process.env.NODE_ENV) ? process.env.NODE_ENV : 'development'; @@ -11,4 +12,4 @@ process.env.NODE_ENV = ~utilities.walk('./config/env', /(.*)\.js$/).map(function module.exports = _.extend( require('./env/all'), require('./env/' + process.env.NODE_ENV) || {} -); +); \ No newline at end of file