-
Notifications
You must be signed in to change notification settings - Fork 3
Deploy
- CoreLib:
mvn clean install
- Portal
- Minify the jsp files by running the following command in the ./portal2 subdirectory:
mvn -f pom-minify.xml minify:minify package
mvn clean install
- Copy the generated war file (
portal2/target/portal.war
) into the Tomcatwebapps/
directory
- Minify the jsp files by running the following command in the ./portal2 subdirectory:
- API:
mvn clean install
- Copy the generated .war files (
api2-demo/target/api-demo.war
andapi2-war/target/api.war
) into the Tomcatwebapps
directory
- Copy the generated .war files (
Note: add -DskipTests
to the above maven commands to skip the unit tests
These directories can be found in the portal_translations repository. Copy these directories in their entirity to a location of choice (here /data/portal2/):
cp -R ./portal_translations/static_pages /data/portal2/
cp -R ./portal_translations/message_keys /data/portal2/message_keys/
Update the static.page.path and message.resource keys in the europeana.properties file with the values of these directories, e.g. static.page.path=/data/portal2/static_pages
and message.resource=file:/data/portal2/message_keys/messages
Copy the schema mapping properties file from the portal2 repository to a location of choice (here /data/portal2/conf):
cp ./portal2/src/test/schema.org.mapping/schema.org.mapping.properties /data/portal2/conf/
Update the schema.org.mapping key in the europeana.properties file with the value of this file location, e.g. schema.org.mapping=/storage/servers/portal2/conf/schema.org.mapping.properties
Copy the stopwords file from the corelib repository to a location of choice (here /data/portal2/conf)::
cp ./corelib/corelib-utils/src/test/resources/testdata/mlt_stopwords.txt /data/portal2/conf/
Update the portal.mlt.stopwords key in the europeana.properties file with the value of this file location, e.g. portal.mlt.stopwords=/data/portal2/conf/mlt_stopwords.txt
Create an opt-out file for disabling collections from showing up in the API. Even if all collections are to be displayed, an empty file needs to be created (here in /data/portal2/conf)
touch /data/portal2/conf/opt-out-list.txt
Update the api.optOutList key in the europeana.properties file with the value of this file location, e.g.
api.optOutList=/data/portal2/conf/opt-out-list.txt
(Re)start Tomcat after making the above changes to ensure these get picked up.
The portal is now available at http://localhost:8080/portal/