in reply to Re: Re: Developement and production mod_perl sites on a single server
in thread Developement and production mod_perl sites on a single server
Each mod_perl server can use its own lib path. There are many ways to modify default @INC: for example you can set PERL5LIB environment variable in Apache startup script (see perlrun for description of PERL5LIB) or just use lib in server startup script.
How do you migrate from one set to the other?
Simpliest solution: cp -rv /home/testing /home/production what requires you to store all information that varies in production and development environments like filepaths and database name in separate config files.
Actually it may be much more complex (say, you want to use CVS). This is the question of deployment strategy which was recently covered by this thread in mod_perl maillist.
--
Ilya Martynov, ilya@iponweb.net
CTO IPonWEB (UK) Ltd
Quality Perl Programming and Unix Support
UK managed @ offshore prices - http://www.iponweb.net
Personal website - http://martynov.org
|
|---|