iNTERFACEWARE Products Manual > Learning Center > Iguana Best Practices Guide > Using Configuration Management and Version Control With Iguana > Defining Multiple Servers Using Environment Variables and A Single Configuration File |
![]() ![]() |
Looking for Iguana v.5 or v.6? Learn More or see the Help Center.
Within Iguana, you can view, define and edit the environment variables that have been specified for your system: ![]() You can use environment variables to define multiple servers that use the same configuration file. For example, you can create a production Iguana server and a test Iguana server that are effectively identical. To ensure that your test server does not affect your production server, you can use environment variables to reference either the production environment or the test environment. To use the same configuration file in multiple environments:
For example, if you are using one database for your production environment and another for your test environment, you can use an environment variable named DATASOURCE to specify the data source in a From Database or To Database channel component: ![]() This enables you to use the same channel definition in both your production environment and your test environment. To change from one environment to another, all you need to do is change the value of DATASOURCE. To show another example, if you have defined a channel with a To File channel component, you can use an environment variable to specify the directory into which files are to be written: ![]() To use a different directory in your test environment, all you need to do is change the value of the FILEDIR environment variable. |