-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL
32 lines (26 loc) · 848 Bytes
/
INSTALL
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
== Local installation
=== OSX, Linux
Something like:
[source,shell]
--------------------
$ git clone git://github.com/tricycle/predictionbook.git
$ cd predictionbook
$ git submodule update --init
$ cp config/database.example.yml config/database.yml
$ sudo rake gems:install
$ sudo RAILS_ENV=test rake gems:install
$ sudo RAILS_ENV=cucumber rake gems:install
$ /usr/local/mysql/bin/mysqladmin -u root password "" # ACHTUNG! dev machines only
$ rake db:create
$ rake db:schema:load
$ script/server
$ ^Z # ctrl+z
$ bg
$ open http://127.0.0.1:3000/
$ fg
--------------------
=== Google Analytics
* In file "app/views/layouts/application.html.erb"
+ replace [your_analytics_tracker_id] with your Google Analytics tracker id
=== OSX "Can't connect to local MySQL server through socket" Error
* add "host: 127.0.0.1" to the database.yml for local