Skip to content

Commit

Permalink
Mod: 更新安装说明文档
Browse files Browse the repository at this point in the history
  • Loading branch information
huacnlee committed May 18, 2011
1 parent 6750a6e commit d756e0c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.textile
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@ h2. Installation

h3. Start Redis, Mongodb first, you need

pre.
pre.
$ sudo service redis start
$ sudo service mongodb start

h3. Download Quora source code from Github

pre.
pre.
$ git clone git://github.com/huacnlee/quora.git

h3. Configure Quora

pre.
pre.
$ cd quora
$ bundle install --path vendor/bundle
$ cp config/mongoid.yml.default config/mongoid.yml
Expand All @@ -38,19 +38,19 @@ $ cp config/sphinx.yml.default config/sphinx.yml

h3. Create Sphinx config files and index the database to Sphinx _(Before here, you need install Coreseek first.)_

pre.
pre.
$ rake mongoid_sphinx:configure
$ rake mongoid_sphinx:index
$ rake mongoid_sphinx:start

h3. If you have Quora project old data in the Mongodb, you need to run this script to index the old data for search

pre.
pre.
$ rake search:index

h3. After, run Rails Server

pre.
pre.
$ rails s

Then, open your browser, points to http://127.0.0.1:3000
Expand Down

0 comments on commit d756e0c

Please sign in to comment.