Changing server settings; development, staging, production

A place for users and developers of the Xataface to discuss and receive support.

Changing server settings; development, staging, production

Postby kedoin » Tue Nov 11, 2008 9:34 am

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
kedoin
 
Posts: 12
Joined: Fri Apr 04, 2008 7:44 am

Postby shannah » Wed Nov 12, 2008 11:01 am

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.
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 15 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved