Skip to content

Commit 7323d77

Browse files
committed
Update installation for Ubuntu 18.04
1 parent e8e8043 commit 7323d77

File tree

2 files changed

+34
-29
lines changed

2 files changed

+34
-29
lines changed

2- INSTALL.rdoc

+34-26
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
= Installation instructions
22

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.
44

5-
== Preliminaries
5+
== Requirements
66

77
The following other libraries and programs are needed
88

@@ -19,24 +19,32 @@ The following other libraries and programs are needed
1919

2020
== Ruby and Rails
2121

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.
2323

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
2725

2826
deb http://ppa.launchpad.net/brightbox/ruby-ng/ubuntu trusty main
2927
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
3033

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:
38+
39+
sudo apt-get install -y dirmngr gnupg
40+
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 561F9B9CAC40B2F7
41+
sudo apt-get install -y apt-transport-https ca-certificates
3242

33-
Then (all as root or with sudo)
43+
Then install all the dependencies and setup passenger:
3444

3545
apt-get update
36-
apt-get install ruby2.3 ruby2.3-dev
37-
apt-get install passenger libapache2-mod-passenger
46+
apt-get install mysql-server apache2 git ruby ruby-dev gcc zlib1g-dev libxml2-dev imagemagick libmagickcore-6.q16-dev libmagickwand-6.q16-dev libmysqlclient-dev default-jre
3847
a2enmod passenger
39-
update-alternatives --set ruby /usr/bin/ruby2.3
4048

4149
Passenger also wants to compile a binary module, this is optional but will enable it
4250

@@ -50,7 +58,7 @@ Get the sources if necessary (https://github.com/rism-ch/muscat and https://gith
5058
git clone https://github.com/rism-ch/muscat.git --recursive
5159

5260
gem install bundler
53-
bundle install --deployment # deployment is for the production system
61+
bundle install #--deployment # deployment is only for the production system
5462

5563
Install base configuration:
5664

@@ -65,18 +73,20 @@ Install the base css:
6573

6674
Set up databases access:
6775

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
7686
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
7787

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
8090

8191
Add basic dataset:
8292

@@ -87,9 +97,7 @@ Default (development) startup:
8797
bundle exec rake sunspot:solr:start
8898
rails s -e development
8999

90-
Try to open :
91-
92-
http://ip:3000/
100+
Try to open http://$IP_ADDRESS:3000/
93101

94102
For startup in production mode (with sudo or as root):
95103

@@ -165,7 +173,7 @@ Start Apache and Solr.
165173

166174
If all this works, you can access the rism application:
167175

168-
http://IP
176+
http://$IP_ADDRESS
169177

170178
== Add clean up in crontab for blacklight
171179

4- CONFIG.rdoc

-3
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,6 @@ Example:
149149
de: Name
150150
en: Name
151151

152-
== Options
153-
hide_marc_identifiers: <true or false>
154-
155152
Example:
156153

157154
--- !map:Settings

0 commit comments

Comments
 (0)