This document explains various options to deploy & configure your Berlioz application to your site.
The publish script is responsible for deploying the PageSeeder data to your site. See Integration.
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/
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.
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
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:
- By using the berlioz.mode system property
For example, by starting your server with
-Dberlioz.mode=devin the command line;
- By only including the the mode to use in the
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.