Advanced

Advanced topics

 

Deployment

This document explains various options to deploy & configure your Berlioz application to your site.

Note

The publish script is responsible for deploying the PageSeeder data to your site. See Integration.

 

Development environment

In development environment, PageSeeder recommends installing a local version of Jetty which is light weight and can be started and stopped easily.

You can get Jetty from: www.eclipse.org/jetty/ 

Jetty configuration

It is possible to start using Jetty with a Berlioz application right out of the box, but some simple configuration can allow to get the most out of Jetty+Berlioz.

Note

If a project has been started with Berlioz Base, it should already include some sample jetty configuration files.

By convention, PageSeeder developers use port 8099 in development. Start a jetty as:

java -Djetty.port=8099 -jar start.jar

Berlioz mode

During development, developers need to see what is happening to their application. The convention is to use the 'dev' or 'local' modes for development.

The mode allows Berlioz to load specific Berlioz global settings file and logging files. It can be specified in two ways:

  1. By using the berlioz.mode system property
    For example, by starting your server with -Dberlioz.mode=dev in the command line;
  2. By only including the the mode to use in the /WEB-INF/config folder.

Production environment

Jetty is perfectly suitable for a production system. However, Berlioz is a simple J2EE application so it could be deployed on any J2EE compliant server and has successfully tested on Tomcat, Glassfish, Resin and Websphere in the past.

Created on , last edited on