jsgen 搭建
1,mongodb
2,redis
http://www.cnblogs.com/lxx/archive/2013/06/04/3116985.html
http://blog.csdn.net/wf1982/article/details/7208979
3,npm install
最好在vs command 里运行
http://stackoverflow.com/questions/18774929/npm-install-g-karma-error-msb4019-the-imported-project-c-microsoft-cpp-defau
4,无法删除 The file name(s) would be too long for the destination folder
http://answers.microsoft.com/en-us/windows/forum/windows_7-files/error-message-the-file-names-would-be-too-long-for/067ac100-b82a-4754-9fb5-9dd50aed8b90
5,check config file error: TypeError: Object #<Object> has no method 'upyun' ,
node app.js install
6,必须的步骤
npm install node-gyp //windows需要先运行此命令,linux不需要
//此命令依赖python和vs2012,请参考 https://github.com/TooTallNate/node-gyp/wiki/Visual-Studio-2010-Setup
npm install //npm安装依赖模块,请确保依赖模块全部安装好。
//windows下请运行 npm install --msvs_version=2012
node app.js install //启动jsGen之前,初始化MongoDB数据库
node app.js [recache] //正式启动,可选参数 `recache`,启动时重建redis缓存
npm start //正常启动,或 `node app.js`