Page 1 of 1

Changing server settings; development, staging, production

PostPosted: Tue Nov 11, 2008 9:34 am
by kedoin
Is there any way to define and choose between multiple settings of the _database configuration from conf.ini?

In particular, when I'm developing, I want to use an expendable database which likely would have different host/user/password/name settings. Similarly, when I stage a release candidate for final testing, I wouldn't want to use the production server, so these settings might again be different. Then finally, when all is ready to move into production, I'd like to be able to use the "blessed" settings for the production database.

For example, it would be nice if I could specify an attribute in conf.ini like:

lifecycle = "production"

and then all the settings would be set accordingly.

Right now, it seems like I need to manually change the settings in conf.ini each time I move between stages and that seems like an error prone operation.

Thank you.
-Rob

PostPosted: Wed Nov 12, 2008 11:01 am
by shannah
There is no such parameter. I generally use subversion for version control. It makes it pretty easy to merge and update settings between installations.

I'm not sure how adding a "lifecycle" attribute would help matters as it would still require a change to the conf.ini file to set this variable instead of just setting the database settings.

You can also just comment out the settings so you keep all 3 in the conf.ini file but remove the comment for the correct settings each time. That way you're just adding a couple of semi colons each time you switch between versions.