...
Secondly, it is essential to install the Apache Tomcat application server. You will find the necessary instructions for its installation at the following link: Installing Tomcat 8.5 for VIVO
Item 2) Configuring the source code
...
workspace and extracting the code
Step | Action |
---|
1) Creating the GIT directoryWhether under Windows or on Unix it is necessary to create a space in which it is possible to work. As proposals we suggest creating a directory called under the Tomcat root directory. In the case of users and Unix we suggest to carry out the operations under the tomcat username. This precaution facilitates the management of credentials associated with development under Linux. |
Code Block |
---|
| sudo -i -u tomcat # sudo in Linux - not on Windows
mkdir $TOMCAT_HOME/GIT # $TOMCAT_HOME is predefined at the installation of Tomcat
cd $TOMCAT_HOME/GIT |
|
2) Retrieving the codeTo VIVO internationalization, it is necessary to extract the four following GitHub repo:
|
Code Block |
---|
| git clone https://github.com/vivo-project/Vitro.git Vitro -b branch_name_to_be_coming
git clone https://github.com/vivo-project/VIVO.git VIVO -b branch_name_to_be_coming
git clone https://github.com/vivo-project/VIVO-languages VIVO-languages -b branch_name_to_be_coming
git clone https://github.com/vivo-project/Vitro-languages Vitro-languages -b branch_name_to_be_coming
|
|
Item 3) Configuring
...
the VIVO search accelerator (SOLR)
Step | Action |
---|
1) Configuring SOLR | suivre les étapes de configuration disponible à ce lien: Configure and Start Solr
|
2) Check vivocore in Solr |
Code Block |
---|
sudo systemctl start solr
http://localhost:8983/solr/#/vivocoreIsabelle/core-overview |
Image Modified
|
Item 3) Preparing VIVO for first start
Step | Action |
---|
1) Create VIVO home |
Code Block |
---|
| sudo -i -u tomcat # for Linux user
mkdir -p $TOMCAT_HOME/vivo_i18n/home
cp -r $TOMCAT_HOME/GIT/vivo-uqam-i18n/vivo-project-i18n-config/vivo_i18n/home/* $TOMCAT_HOME/vivo_i18n/home/
|
|
2) Edit runtime.properties fileMake sure that attribute properties fit with current installation
|
Code Block |
---|
| sudo -u tomcat vi /opt/tomcat/vivo_i18n/home/config/runtime.properties |
Code Block |
---|
language | bash |
---|
title | runtime.properties |
---|
| Vitro.defaultNamespace = http://<adresse-ip-du-serveur>:8080/vivo/individual/
...
rootUser.emailAddress = vivo_i18n@uqam.ca
...
VitroConnection.DataSource.url = jdbc:mysql://localhost/vivo_i18n
VitroConnection.DataSource.username = vivo_i18n
VitroConnection.DataSource.password = VIVO_I18N_MYSQL_PASSWORD
...
vitro.local.solr.url = http://<server-ip-adress>:8983/solr/vivocore_i18n
...
RDFService.languageFilter = true
languages.selectableLocales = fr_CA, en_US, de_DE |
|
Check that the file contains the following code: |
Code Block |
---|
| sudo -u tomcat cp example_settings_i18n_linux.xml settings_i18n_linux.xml
sudo -u tomcat vi settings_i18n_linux.xml |
Code Block |
---|
language | xml |
---|
title | settings_i18n_uqam.xml |
---|
| <settings xmlns="http://maven.apache.org/SETTINGS/1.1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd">
<profiles>
<profile>
<id>defaults</id>
<properties>
<app-name>vivo_i18n</app-name>
<vivo-dir>/opt/tomcat/vivo_i18n/home</vivo-dir>
<tomcat-dir>/opt/tomcat</tomcat-dir>
<default-theme>wilma</default-theme>
</properties>
</profile>
</profiles>
<activeProfiles>
<activeProfile>defaults</activeProfile>
</activeProfiles>
</settings> |
|