更新package&readme

This commit is contained in:
eshengsky
2017-04-18 16:54:42 +08:00
parent c272116122
commit 85b59b9fde
2 changed files with 7 additions and 5 deletions

View File

@@ -71,9 +71,11 @@ $ bower install
```
在 "后台管理-系统设置" 页面中,支持以可视化方式配置其余参数。
#### 启动站点
*注意对于node v4及以下版本需要添加 --harmony-proxies 参数。*
* 方式1普通模式启动
```Shell
$ node --harmony-proxies ./bin/www
$ node ./bin/www
```
* 方式2快速启动
```Shell
@@ -82,7 +84,7 @@ $ npm start
* 方式3守护进程启动
_守护进程能够发挥多核CPU性能并在出现异常退出后延迟30秒自动重启工作进程。_
```Shell
$ node --harmony-proxies daemon.js
$ node daemon.js
```
打开浏览器,访问 [http://localhost:3000/](http://localhost:3000)
#### Enjoy it! :smile:

View File

@@ -3,8 +3,8 @@
"version": "1.0.0",
"private": true,
"scripts": {
"start": "node --harmony-proxies ./bin/www",
"postinstall": "bower install"
"start": "node ./bin/www",
"postinstall": "bower install"
},
"dependencies": {
"async": "^1.5.2",
@@ -29,6 +29,6 @@
"serve-favicon": "~2.3.0",
"shortid": "^2.2.4",
"winston": "^2.1.1",
"winston-mongodb": "^1.3.0"
"winston-mongodb": "^2.0.8"
}
}