forked from publiclab/plots2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.environment
67 lines (45 loc) · 1.16 KB
/
README.environment
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
0. Prerequisites:
---
Ruby, MySQL, Rails 3.2.x
1. Install RVM
---
Read about and install RVM here: https://rvm.io/ (preferred over apt-get version)
Then configure it:
rvm install 1.9.3 -n plots2
rvm 1.9.3-plots2
2. Setup Database adapters
---
MySQL support on Debian/Ubuntu:
sudo apt-get install libmysqlclient-dev
PostgreSQL support on Debian:
sudo apt-get install postgresql-server-dev-X.Y
SQLite support:
(nothing?)
create config/database.yml with test, development headings.
See config/database.yml.example and modify as desired.
3. Install Gems
---
cd $ROOT/
General:
bundle update # not always required, but handy
bundle install
Exclude testing and sqlite:
bundle install --without test sqlite
Exclude mysql support:
bundle install --without mysql
4. Install environmental dependencies
---
gem install passenger
5. Set Up the Database
---
Create the tables, schema, and fill the database with example seed data:
rake db:setup
Create the tables and schema with the example data:
rake db:create && rake db:migrate
6. Run the Rails app
---
rake test
passenger start (development by default)
Login credentials:
login: admin, moderator, or user
password: password