forked from berkmancenter/h2o
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathINSTALL.dev
More file actions
38 lines (28 loc) · 1.18 KB
/
INSTALL.dev
File metadata and controls
38 lines (28 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Make sure you have a jre and postgres dev libraries installed, you'll also
need libxml2 (and maybe other libraries) needed to satisfy gem requirements.
1) Install rvm, version 1.6.18. This is necessary because we need an older
version of rubygems to work with rails 2.3. The details of rvm installation are
on the rvm website.
curl -L https://get.rvm.io | bash -s -- --version 1.6.18
2) Install ree-1.8.7
rvm install ree
3) Check out h2o. cd into the directory and create a gemset and rvmrc to set up the
correct environment
git clone https://github.com/berkmancenter/h2o.git h2o
cd h2o
rvm use ree
rvm gemset create rails2
rvm use ree@rails2 --rvmrc
cd ../ && cd h2o/
# Accept the rvmrc prompt, you should now be in the correct version of ruby and
# and empty gemset
4) Run bundle install
5) Create the database (postgres only for now). Set up config/database.yml to connect to it.
6) Install the rest of the gems, run migrations:
rake db:migrate
7) Configure solr in config/sunspot.yml. Start via:
rake sunspot:solr:start
8) Set up passenger standalone:
gem install passenger
passenger start -p 3000
and you should now be able to connect on http://localhost:3000/