Difference between revisions of "DevelMode"
(Use RT-SiteConfig.pm instead of RT-Config.pm)
Revision as of 12:26, 12 February 2013
'Devel'Mode - config option that allows developers to avoid server restarts and CleanMasonCache after every change. Note that this feature slow down RT and should be disabled in production environment.
This options require additional perl modules to work properly. Easiest way to install dependencies:
shell> ./configure --with-devel-mode shell> make fixdeps
Alternative installation: Bundle::RT includes this additional modules as dependencies. Install it with cpan or cpanp shells. cpanp - CPANPLUS is not in Perl core and requires installation. If you packager has Bundle::RT (FreeBSD does not include), you can install it this way.
You can also using cspan to install dependencies (check apache/error.log for missing dependency errors):
shell>sudo cpan -i Module::Refresh
If you already have RT installed and all dependencies are met, add the following line to your RT-SiteConfig.pm file to enable Developer Mode:
This will allow you to write to rt.log throughout your Scrip Conditionals and/or Actions like so: