From d18d89b8b66b29923b4c9f631bf26c9dc7dfa068 Mon Sep 17 00:00:00 2001 From: yafei Lee Date: Sun, 12 Apr 2015 23:31:31 +0800 Subject: [PATCH] Update README.md --- README.md | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 0a36ca3..92c2d64 100644 --- a/README.md +++ b/README.md @@ -37,30 +37,30 @@ Made it to the best Ruby on Rails Blog system in the world. ### Study it locally -WBlog must run in Linux or Mac, it depends on Mongodb database. You can run it like a Ruby on rails as usual: +WBlog must run in Linux or Mac, it depends on Mongodb database. You can run it like a Ruby on Rails project as usual: 1. Clone it -`git clone git@github.com:windy/wblog.git` -`cd wblog ` + `git clone git@github.com:windy/wblog.git` + `cd wblog ` 2. Install dependencies & configure + + ```shell + bundle install + cp config/application.yml.example config/application.yml + cp config/database.yml.example config/database.yml + ``` -```shell -bundle install -cp config/application.yml.example config/application.yml -cp config/database.yml.example config/database.yml -``` - -Update application.yml & database.yml as you need + Update application.yml & database.yml as you need 3. Start it + + ```shell + rails s + ``` -```shell -raise s -``` - -If there is error found, please check your database user and password. +If there is any error found, please check your database's user and password. OK, That's all. @@ -68,7 +68,7 @@ OK, That's all. WBlog uses `mina` as automation deployment tool, uses `unicorn` as the Rack container. -WBlog recommends `nginx` as reverse proxy server +WBlog recommends `nginx` as reverse proxy server. It will be very fast.