Fixed Comments and README

This commit is contained in:
Amos Haviv
2014-04-15 16:08:02 +03:00
parent 956ec25982
commit 08a2c0fc72
2 changed files with 4 additions and 3 deletions

View File

@@ -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.

View File

@@ -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) || {}
);
);