I am developing an application with mod_
perl and restarting the server every time I change code is a huge drag. I'd like to still use mod_
perl for development because it's what I plan on using for the live server. I didn't see anything in the documentation about how to do this.
Thoughts?
I think Apache2::Reload will somewhat accomplish what you're looking for. However, remember to delete all this implementation once you're ready to put the app in production.
Monitor All Modules in %INC
To monitor and reload all modules in %INC at the beginning of request's processing, simply add the following configuration to your httpd.conf:
When working with connection filters and protocol modules Apache2::Reload should be invoked in the pre_connection stage:
Register Modules Implicitly
To only reload modules that have registered with Apache2::Reload, add the following to the httpd.conf:
Then any modules with the line:
Will be reloaded when they change.
For for information check out this documentation page. Hope this helps.
I use this solution, from Perrin Harkins via PerlMonks:
From "A better way to see module changes in a running web server"