ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Can you rapidly deploy similar sites with EE?

May 11, 2012 12:43pm

Subscribe [5]
  • #1 / May 11, 2012 12:43pm

    Envision

    18 posts

    I work for a web design firm that works primarily with EE. We deploy so many projects that are similar, using the same plugins, channel names, field groups and templates.

    Is there a way to create a template site (including database)and duplicate it as another site? It would save us loads of time. If anybody has some feedback, I’d appreciate it.

  • #2 / May 11, 2012 12:47pm

    Rob Allen

    3114 posts

    There a few approches here but one way would be to set up your “boilerplate” install on a dev server, complete with templates and whatever addons you want to include. Then when you want to replicate it literally make a copy and port it over to the new site.

    Obviously you’d have to update URL’s paths etc in the new sites configuration and buy relevent licences.

    http://expressionengine.com/wiki/Move_from_Development_to_Production_on_EE_2 is worth reading

  • #3 / May 15, 2012 12:01am

    OrganizedFellow

    435 posts

    YUP!
    I’ve done that before, works really well!

  • #4 / Mar 29, 2013 9:18am

    Rick Lecoat

    128 posts

    A late reply to this (but I stumbled upon your question whilst searching for something else).

    I’d second Rob’s advice, but would expand upon it slightly in two ways:

    1. Once you have the ‘master’ copy of the site set up just how you want it—i.e. in its virgin, ‘rollout’ state—export a copy of the database (I use Sequel Pro on the Mac for this) to a single gzipped file and store that file together with your site files. When you come to create a new database for a particular site rollout, you will have everything ready to import into the new, empty db.

    2. Set up your ‘master’ copy of the site using Focus Lab’s MasterConfig system. The first time you do it it needs a little bit of work, but it means that you can set pretty much every configuration option available in the CP from one central file rather than having to go to 12+ screens throughout the CP. And once you’ve done it once you can reuse those configuration files on other projects, just by tweaking a couple of project-specific settings, so you don’t have to go through it every time. Brilliantly DRY. (Bear in mind that settings made in the config file are no longer changeable from the CP, but it’s a great way to lock down settings that you don’t want your users to mess with).

    The main benefit of the MasterConfig system is that your server paths and URL paths update automatically when you move the site to a new server. That’s REALLY helpful, otherwise you would have to go through numerous, not-always-obvious locations in the CP updating the server and URL paths to avoid things breaking.

    Now, you could do that by simply having a standard boilerplate config.php file that you copy into your system folder, as per Matt Weinberg’s method (which MasterConfig is partly derived from). You’d still have to update your database.php file for different servers, though. However, the second huge benefit of using MasterConfig is that you can define multiple environments (eg. local server, staging server, production server) and your EE installation will apply the correct database connection details for each environment automatically. You can also set environment-specific configuration overrides that will trump your central configuration. So I have quite secure settings set centrally, but those security settings are overridden/relaxed in my ‘local’ environment, to make development easier.

    All that adds up to maximum portability, which is exactly what you want in a ‘master’ copy of a site that you want to replicate in multiple locations.

  • #5 / May 04, 2013 6:42am

    ebrainnight

    9 posts

    I am already done it, here Rob suggestive link will help you and with that you can also do it easily 😊

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases