You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: 2- INSTALL.rdoc
+34-26
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
= Installation instructions
2
2
3
-
This document describes how to bootstrap into the webapplication.
3
+
This document describes how to bootstrap into the webapplication. The documentation is updated for Ubuntu 18.14 LTS.
4
4
5
-
== Preliminaries
5
+
== Requirements
6
6
7
7
The following other libraries and programs are needed
8
8
@@ -19,24 +19,32 @@ The following other libraries and programs are needed
19
19
20
20
== Ruby and Rails
21
21
22
-
Muscat 4 now requires ruby 2.3 by default. Rails is installed with the correct version with bundle. On some systems it is necessary to uncomment therubyracer from the gemfile
22
+
Muscat 4 now requires ruby 2.3 by default. Rails is installed with the correct version with bundle. Ubuntu comes with ruby 2.5 by default so no actions are necessary. On older Debian systems the easyest way to get ruby 2.3 is via rbenv adding for all users.
23
23
24
-
On older Debian systems the easyest way to get ruby 2.3 is via rbenv adding for all users.
25
-
26
-
On Ubuntu systems pre-packaged binaries exist: add
24
+
On older Ubuntu systems add the following repositories
27
25
28
26
deb http://ppa.launchpad.net/brightbox/ruby-ng/ubuntu trusty main
29
27
deb https://oss-binaries.phusionpassenger.com/apt/passenger trusty main
28
+
29
+
(On some systems it is necessary to uncomment therubyracer from the gemfile)
30
+
On Ubuntu 18.04 only passenger is needed:
31
+
32
+
deb https://oss-binaries.phusionpassenger.com/apt/passenger bionic main
30
33
31
-
To /etc/apt/sources.list or create a relevant file in /etc/apt/sources.list.d
34
+
(Add /etc/apt/sources.list or create a relevant file in /etc/apt/sources.list.d)
35
+
Also make sure that unniverse repositories are enabled!
36
+
37
+
On 18.40, also enable GPG verification of Passenger:
bundle install --deployment # deployment is for the production system
61
+
bundle install #--deployment # deployment is only for the production system
54
62
55
63
Install base configuration:
56
64
@@ -65,18 +73,20 @@ Install the base css:
65
73
66
74
Set up databases access:
67
75
68
-
mysql
69
-
> CREATE DATABASE muscat_development CHARACTER SET utf8 COLLATE utf8_general_ci;
70
-
> CREATE USER 'username'@'localhost';
71
-
> SET PASSWORD FOR 'username'@'localhost' = PASSWORD('pass');
72
-
> GRANT ALL ON muscat_development.* TO 'username'@'localhost';
73
-
# Remember
74
-
# username and pass should be the same as in database.yml
75
-
76
+
sudo mysql # Or log in with a user that has user creation privileges
77
+
78
+
Create the user, substitute with an appropriate user and password!
79
+
80
+
CREATE DATABASE muscat_development CHARACTER SET utf8 COLLATE utf8_general_ci;
81
+
CREATE USER 'rism'@'localhost';
82
+
SET PASSWORD FOR 'rism'@'localhost' = PASSWORD('password');
83
+
GRANT ALL ON muscat_development.* TO 'rism'@'localhost';
84
+
85
+
Remember username and pass should be the same as in database.yml
76
86
Migrate the database NOTE in a production environment all the tasks must declare RAILS_ENV=production to run. For local development this is not necessary
77
87
78
-
bundle exec rake db:migrate
79
-
RAILS_ENV=production bundle exec rake db:migrate ## on a production system
88
+
bundle exec rake db:migrate # development
89
+
sudo RAILS_ENV=production bundle exec rake db:migrate ## on a production system
80
90
81
91
Add basic dataset:
82
92
@@ -87,9 +97,7 @@ Default (development) startup:
87
97
bundle exec rake sunspot:solr:start
88
98
rails s -e development
89
99
90
-
Try to open :
91
-
92
-
http://ip:3000/
100
+
Try to open http://$IP_ADDRESS:3000/
93
101
94
102
For startup in production mode (with sudo or as root):
95
103
@@ -165,7 +173,7 @@ Start Apache and Solr.
165
173
166
174
If all this works, you can access the rism application:
0 commit comments