更新package&readme
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user