Deploy Publication How-To
How to deploy a publication in Apache Lenya:
Note:
It is not sufficient to copy the publication directories to the lenya/pubs directory of your Lenya installation. This way, the core configuration files are not patched, the libraries are not deployed, and other important deployment steps are not applied.
You must use the source version of lenya. The binary distributions are missing some files required for the necessary build process of your new publication.
Deploying a Publication
-
Download the publication to a directory of your choice. For instance:
-
/src /lenya-1.2.x <- $LENYA_HOME /projects/lenya/pubs <- $PUBS_HOME /my-pub <- $MY_PUB_HOME
-
-
Declare the publications in $LENYA_HOME/local.build.properties using pubs.root.dirs
-
For deploying a single publication, add the publication home directory: pubs.root.dirs=src/webapp/lenya/pubs:../../projects/lenya/pubs/my-pub
-
For deploying a directory containing publications, add the directory: pubs.root.dirs=src/webapp/lenya/pubs:../../projects/lenya/pubs
-
-
Deploy the publication:
-
Jetty: $LENYA_HOME> build
-
Tomcat:
-
$LENYA_HOME> build install-pub
-
in case if this fails try it in a different way: $LENYA_HOME> ./build.sh install-pub -Dpub.prefix=""
-
-
-
Restart the servlet engine
-
Go to your Lenya homepage and enjoy the new publication