diff --git a/README.md b/README.md index fbc22de..25beb03 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,9 @@ 基于 Node.js 的个人开源博客系统,采用响应式布局,支持电脑、手机等直接访问,简单实用,美观大方。 (基于 ASP.NET 的 iBlog 点击[这里](https://github.com/eshengsky/iBlog/)) +## 在线实例 +个人博客 [http://www.skysun.name/](http://www.skysun.name/) + ## 功能模块 #### 博客 * 文章列表页 @@ -31,9 +34,6 @@ * 缓存 [Redis](http://redis.io/) * 日志 [winston](https://github.com/winstonjs/winston/) -## 实例预览 -个人博客 [http://www.skysun.name/](http://www.skysun.name/) - ## 快速开始 #### 准备条件 安装最新版[Node.js](https://nodejs.org/en/download/)、[bower](http://bower.io/)、[MongoDB](https://www.mongodb.org/downloads/)、[Redis](http://redis.io/download/)。 @@ -72,7 +72,20 @@ $ node --harmony-proxies ./bin/www ``` 打开浏览器,访问 [http://localhost:3000/](http://localhost:3000) #### Enjoy it! :smile: - + +## 关于缓存 +文章分类、文章列表、文章详细等都作了缓存处理,若想使修改立即可见,需要在"后台管理-缓存管理"页面手动清除缓存。 + +## 线上部署 +推荐使用[pm2](https://github.com/Unitech/pm2)进行线上Node.js的进程管理和持久运行。 +#### 安装 +```Shell +$ npm install -g pm2 +``` +#### 使用 +```Shell +$ pm2 start ./bin/www --node-args="--harmony-proxies" +``` ## 许可协议 The MIT License (MIT)