1. 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?

Discussion in 'Installation, Upgrade, and Import Support' started by misteraven, Sep 18, 2014.

  1. misteraven

    misteraven Member

    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.
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    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.
     
    SneakyDave likes this.

Share This Page