Commit 001152af98287f192f59761ef8beae51ccdd30e4

Authored by Braulio Bhavamitra
1 parent dedc285f

Add solr instructions for HACKING and INSTALL

Showing 2 changed files with 13 additions and 3 deletions   Show diff stats
HACKING
... ... @@ -38,6 +38,9 @@ commands and make sure you understand what you are doing):
38 38 cp config/database.yml.sqlite3 config/database.yml
39 39 # create tmp directory if it doesn't exist
40 40 mkdir tmp
  41 + # download and start Solr
  42 + rake solr:download
  43 + rake solr:start
41 44 # create the development database
42 45 rake db:schema:load
43 46 # run pending migrations
... ...
INSTALL
... ... @@ -13,7 +13,7 @@ You need to install some packages Noosfero depends on. On Debian GNU/Linux or
13 13 Debian-based systems, all of these packages are available through the Debian
14 14 archive. You can install them with the following command:
15 15  
16   - # apt-get install ruby rake po4a libgettext-ruby-util libgettext-ruby-data libgettext-ruby1.8 libsqlite3-ruby rcov librmagick-ruby libredcloth-ruby libwill-paginate-ruby iso-codes libfeedparser-ruby libferret-ruby libdaemons-ruby mongrel mongrel-cluster tango-icon-theme libhpricot-ruby
  16 + # apt-get install ruby rake po4a libgettext-ruby-util libgettext-ruby-data libgettext-ruby1.8 libsqlite3-ruby rcov librmagick-ruby libredcloth-ruby libwill-paginate-ruby iso-codes libfeedparser-ruby openjdk-6-jre libdaemons-ruby mongrel mongrel-cluster tango-icon-theme libhpricot-ruby
17 17  
18 18 On other systems, they may or may not be available through your regular package
19 19 management system. Below are the links to their homepages.
... ... @@ -24,7 +24,7 @@ management system. Below are the links to their homepages.
24 24 * Ruby-GetText: http://www.yotabanana.com/hiki/ruby-gettext.html?ruby-gettext (at least version 1.9.0)
25 25 * Ruby-sqlite3: http://rubyforge.org/projects/sqlite-ruby
26 26 * rcov: http://eigenclass.org/hiki/rcov
27   -* Ferret: http://ferret.davebalmain.com/trac
  27 +* Solr: http://lucene.apache.org/solr
28 28 * RMagick: http://rmagick.rubyforge.org/
29 29 * RedCloth: http://redcloth.org/
30 30 * will_paginate: http://github.com/mislav/will_paginate/wikis
... ... @@ -115,8 +115,11 @@ $ tar -zxvf noosfero-0.27.1.tar.gz
115 115 $ ln -s noosfero-0.27.1 current
116 116 $ cd current
117 117  
118   -Copy config/ferret_server.yml.dist to config/ferret_server.yml. You will
  118 +Copy config/solr.yml.dist to config/solr.yml. You will
119 119 probably not need to customize this configuration, but have a look at it.
  120 +Then you'll need to download Solr into noosfero:
  121 +
  122 +$ rake solr:download
120 123  
121 124 Create the mongrel configuration file:
122 125  
... ... @@ -237,6 +240,10 @@ Create the database structure:
237 240  
238 241 $ RAILS_ENV=production rake db:schema:load
239 242  
  243 +Run Solr:
  244 +
  245 +$ rake solr:start
  246 +
240 247 Now we have to create some initial data. To create your default environment
241 248 (the first one), run the command below:
242 249  
... ...