Apache2::Reload is a CPAN module that causes new code to be implemented as soon as it is created without the coder having to re-load modperl manually. (See the CPAN web page for a more technical description of what it does.) This is very helpful for anyone who wants to get into developing in WebGUI, from simple projects such as modifying a macro or workflow to complex endeavors such as developing your own assets. Without it, each time you wish to check your code, you would have to restart modperl, which can quickly become annoying. With it, your changes are immediately implemented on your website, allowing you to test your changes with less effort.
Previously, Apache2::Reload was part of the WRE development environment, but as of 0.8.3 it was no longer included. Setting up this module on your own development site is now a manual process.
The goal of this page is to walk novice users through the process of setting up Apache2::Reload on a development system. Users are not encouraged to use Apache2::Reload on production websites.
This example uses the 7.6.20 WebGUI VM, available from SourceForge with WRE version 0.9.2.
But how do you tell that Apache2::Reload is working? You'll have to go change some code and see if you see results without having to reload modperl. Here's a quick test:
Keywords: Apache2::Reload reload development environment