Skip to content
This repository has been archived by the owner on Jan 10, 2019. It is now read-only.
bramfoo edited this page Oct 27, 2014 · 2 revisions
## Deploy To deploy the source code, use Maven to build each of the targets:
  • 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 Tomcat webapps/ directory
  • API: mvn clean install
    • Copy the generated .war files (api2-demo/target/api-demo.war and api2-war/target/api.war) into the Tomcat webapps directory

Note: add -DskipTests to the above maven commands to skip the unit tests

## Static files The following (static) files need to be available for the portal to run

Static pages and message keys

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

Schema mapping file

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

Stopwords

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

opt-out

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/