Hi,
I have two vbulletin+vbseo environments at the moment:
Test environment:
http://somedomain.dev/board
This is a URL on my local server
Production environment:
http://somedomain.com/board
My problem is the config_vbseo.php file is slightly different for the two environments.
What can I do so I can use the same config_vbseo.php file for both environments? Token replacement and having two different copies of the file is not an option.
My thoughts so far:
1) In config_vbseo.php, have a block that detects the current environment and sets the config as required for that environment, in psuedo code:
if (environment == test-env) {
set license key to correct value
set custom doc root to correct value
} else if (environment == prod-env) {
set license key to correct value
set custom doc root to correct value
}
Or 2)
In config_vbseo.php there is a property to save settings to db. (see copied code below). Could the license key and custom doc root be stored in the db
// ****** SAVE/RESTORE SETTINGS TO DB ******
// Set this variable to 1 to save (and restore) your settings from vB's (datastore) dB table
define('VBSEO_CONFIG_INIT', '0');


LinkBack URL
About LinkBacks





Reply With Quote