20

Which config bootstrap options are available for ExpressionEngine? Which one works best in a multi server environment?

15

I can recommend Focus Lab's EE Master Config. It's easy to set up and easy to add options to as needed and it is perfect for multi server environments.

I usually don't bother with the multi server set up, and am just building the site on a subdomain and then just transferring to the live domain. But even in this basic case, the master config makes going live quicker and easier.

12

Solutions mentioned in the thread are all nice, but I think you learn a lot by creating your own config bootstrap. To that end, I found the following resources can help a great deal:

Armed with those, it is easy to create bootstrap config files that will suit your needs.

  • I started with the NetTuts config file and have modified it to suit my needs over time. It's simple and doesn't try to do things I don't need. I also learned a lot more about hidden config variables this way. – Stuart McCoy Nov 27 '12 at 11:32
  • I agree whole heartedly. It's the same as bootstrapping a site. Rather than pick Foundation or Twitter BS, extrapolate the parts you need and roll your own. – Steven Grant Jun 20 '13 at 9:11
6

The NSM Bootstrap technique has never let us down in multi-server environments.

  • That's the one I use. – Tyssen Nov 28 '12 at 1:38
6

Many options are available as stated in other posts.

To add to that here is the default config.php & database.php file templates for ExpressionEngine we use.

4

I built my own config file, because I had a setup that most of the prebuilt configs didn't have... My normal setup is, Local, Staging (Located on subdirectory, inside a folder) and then Production.

A lot of hooks were added for NSM .htaccess, CE Image, CE Tweet etc...

Just pushed the latest version of it to my Github.

https://github.com/madebymayo/ExpressionEngine-Environment-Config

4

I'll second tidy's vote for the Focus Labs EE Master config. We are using it in a multi server deployment set up and it's awesome. Saves lots of time and I no longer worry about code deploying out with the wrong environment configs.

3

Agreed with building your own. I built my own then modified FL's EE Master Config to suit my needs. Super flexible and it is really nice having a plug-and-play EECMS install ready to be loaded on to any server.

If you are using multiple environments then use something like Deeploy Helper to get URL's/Paths stored in the DB updated when you migrate http://www.hopstudios.com/software/deeploy_helper

3

Focus Lab's Master Config also supports MSM (with the aid of this gist).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.