info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

handling config files


From: raptor
Subject: handling config files
Date: Sun, 30 Sep 2001 16:37:54 +0200

hi,

I want to ask U how u handle configuration files..what I have in mind...Say
we have a development server and production server.. but the difference is
that for example u store uploaded images on the Dev server at directory :
/sites/upload/images
but on production server it is on :
/disk2/upload/images

(u still have /sites/ dir but it is on other disk)

so U set those variables in config file /sites/config/Config.pm and this
file is under CVS control, what is the problem here. Both Config.pm must be
different ('cause they represent different file structures), but U still
want when u add new Variable in the DEV-Config.pm it to be updated on the
Production-Config.pm, on the other hand U want to preserve the values that u
have on Production server, but not edit them by hand every time u make
Update on the Production server.

So what u do in those cases !?

1. Copy temporarily this file off-site, make "cvs update", return it back
(overwrite dev-version), manualy edit it if some new stuff are added
2. make a Selective update dir by dir (not the whole repository at once, so
that this config file is not touched)
3. Remove this file from CVS control and copy it manualy when needed (very
ugly u may loose usefull info)
OR u do it in some more clever way ?
WHAT if u have many files like this and manual editing become a nightmare ?!

Thanx alot in advance
=====
iVAN
address@hidden
=====







reply via email to

[Prev in Thread] Current Thread [Next in Thread]