• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.4 Setting up a bootstrap file for XF config?

#1
Hello,

I'm new to Xenforo and am in the process of learning and customizing my new install. This said, we use a versioned workflow via Beanstalk / GIT so that all dev work is done locally, pushed to a development server for testing and then pushed live to a production server.

Anyhow, I'm more a designer than programmer (though I'm often more tech savvy that most designers I meet), but am unsure how to setup a bootstrap for the config file so I can configure separate DB config for the various environments. I tried searching and instead found threads relating to a 'Bootstrap' theme.

Can anyone point me to a tutorial on how this might be done.

Thank you.
 

Jake Bunce

XenForo moderator
Staff member
#2
In the index.php file you will see this:

Code:
XenForo_Application::initialize($fileDir . '/library', $fileDir);
The first parameter is the configDir. The second is the rootDir.