Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: keeping two config files in sync

by ig (Vicar)
on Sep 12, 2012 at 20:05 UTC ( #993300=note: print w/ replies, xml ) Need Help??


in reply to keeping two config files in sync

I would change the config file so that it contained a section for each environment or server and the servers selected the correct section at runtime. In these sections, I would only put the parameters that are server or environment specific. Any parameters that are common to all environments and servers would be expressed only once. In this way, each server or environment would have its unique configuration but the same config file would be used in each environment. It also makes it easy to see what the differences are between servers and environments.


Comment on Re: keeping two config files in sync

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://993300]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (11)
As of 2015-07-29 09:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (263 votes), past polls