Using the Compile Server
Clone this wiki locally
The steps described in the README use the OpenLaszlo command-line compiler to compile applications. A faster technique, that requires more configuration, is to leave the OpenLaszlo server running.
For the plugin to take advantage of this, the applet source files need to be accessible to the server. The easiest way to do this is to enable
allowLinks for the OpenLaszlo servlet, and place an alias to your rails directory (or just to its
app/applets subdirectory) inside the OpenLaszlo directory.
1. Set the
OPENLASZLO_URL environment variable to the web location of the OpenLaszlo server. For example:
$ export OPENLASZLO_URL=http://localhost:8080/lps-126.96.36.199
2. Open the file $OPENLASZLO_HOME/Server/tomcat-5.0.24/conf/LPS/localhost/lps.xml in an editor, and add the text
allowLinking="true" to the
Context line so that it looks something like this:
<Context docBase="../../lps-188.8.131.52" path="/lps-184.108.40.206" allowLinking="true">
Note: if you are building OpenLaszlo from source, you’ll find the config file in $TOMCAT_HOME/conf/Catalina/localhost/trunk.xml
3: Create a symbolic link from the servet’s app source directory to your applet sources. For example:
$ ln -s “$PWD/app/applets” “$OPENLASZLO_HOME/Server/lps-220.127.116.11/`basename $PWD`.rails”
4. Launch the OpenLaszlo server.
Now rake openlaszlo:build:applets, rake openlaszlo:update:applets, and reloading a view that embeds an application whose sources have changed, are all faster.