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.

Multiple Site Manager Local Development

November 07, 2011 5:08pm

Subscribe [3]
  • #1 / Nov 07, 2011 5:08pm

    justinkwithj

    25 posts

    I have an existing site that I’d like to convert to a Multiple Site Manager installation as the the original site for the MSM.  Then, I’d like to develop and add an additional site to the MSM installation.  I’d like to develop the additional site locally and then add it to the live MSM installation after It is completed.

    Is there a suggested workflow or guide for developing a MSM site (a non original site) locally and then transferring it to a live MSM installation?  I’ve done this before with a regular EE site, but I don’t know if there are any differences in doing this for a MSM site.  I looked around and wasn’t able to find anything on this.  Sorry if I’ve missed it somewhere.

    Thank you for any help.

  • #2 / Nov 08, 2011 7:23pm

    Dan Decker

    7338 posts

    Hi justinkwithj,

    Let me see if I can sort this out with you. MSM is an ExpressionEngine *expansion*, a very special kind of add-on. Since it allows you to run multiple sites off of one EE install, having a separate install wouldn’t quite work as you have outlined. Here are a couple of ways you might approach this:
    1) Pull down a working copy of your existing site into a development server and install, configure and begin using MSM.
    2) Install, configure and use MSM on the site as is. In this case, you can keep the second site in the offline state until you are ready to launch. Having it there will have no impact on your current live site.

    Let me know if you have any further questions about how MSM works.

    Thanks!

  • #3 / Nov 16, 2011 12:53am

    justinkwithj

    25 posts

    Dan,

    Thanks for your reply. 

    Maybe I’ll begin by stating a little bit more clearly what I’d like to do.  I have an existing fully functioning live EE site (site A).  I’d like to merge site A with an additional site (B) in a single MSM installation and eventually take site B live without having to take site A offline.  I’d like to do the development work for site B locally because it’s more efficient for me.  I use MAMP as my local development platform.  I’m assuming that MAMP can be used to develop locally with MSM.  I guess that may be another issue entirely.

    So, if I’m understanding you correctly for option 1, the steps would be:
    • Pull down site A to local development and leave site A running on the live server,
    • install MSM for site A on the local development platform,
    • develop site B locally on the MSM installation,
    • when development is completed upload the MSM installation containing sites A and B to the live server.

    My only question is how would I merge the changes that were made on the live site A to the older version of site A that was used locally in development?

    Your option 2 is a viable option but I’ll only use it if there is no way for me to develop locally.

    Thanks for your help.

  • #4 / Nov 18, 2011 2:22pm

    Dan Decker

    7338 posts

    Hi Justin,

    I think we are pretty much on the same page here and that you have a good grasp of the issues that might arise from this.

    There may be a way to get the best of both worlds as it were. Making an “option 3” that is a melding of the other 2.

    •Pull down Site A to a local install.
    •Install MSM on both the live server and your local server
    •Point your local install to the remote, live database, in /system/expressionengine/config/database.php

    This should allow you to develop mostly locally and keep both environments in sync with regards to the database. Not entirely elegant, I admit.

    Another, more intensive option would be to bring all of your environments into version control. Erik Reagan has rounded up some serious resources on the matter. That may be a bit more complex than what you are after, but it solves most of the “gotchas” in instances like this.

    Please let me know if I can help you in anyway.

    Thanks!

  • #5 / Nov 18, 2011 11:20pm

    justinkwithj

    25 posts

    Dan your option looks like a good hybrid solution that should allow for easy re-integration with the live site.  I’m going to try it out and let you know how it works. Thanks for thinking through this with me.

  • #6 / Nov 21, 2011 7:33pm

    Sean C. Smith

    3818 posts

    justinkwithj,

    Is everything okay on this then?

    Sean

  • #7 / Nov 24, 2011 10:51pm

    justinkwithj

    25 posts

    So after toying around with this idea for a bit I don’t think it will actually work.  If the local development installation and the live installation share the same database it will lead to conflicts in areas such as the site root directory, paths for various components, and the base URLs.  I don’t see any way of resolving this without making one of the installations nonfunctional.  Dan Decker any thoughts?

  • #8 / Nov 29, 2011 3:28pm

    Dan Decker

    7338 posts

    Hi Justin,

    Have a look into Greeny. There is a section about sharing a remote database between environments, in your case local and remote. That may be the magic you are looking for.

    Cheers!

  • #9 / Dec 03, 2011 3:41pm

    justinkwithj

    25 posts

    Dan, thanks for the great hint there with Greeny.  Unfortunately, I can’t seem to get things situated to work correctly, even with Greeny.  For this project, at least, I’m going to have to just push ahead and develop it “live.”  I can’t spend any more time trying to get the dev environment setup.  However, maybe this is a setup that I could use for a future MSM project.  Seriously, thank you so much for the help and you can consider this thread closed.

  • #10 / Dec 06, 2011 6:39pm

    Sean C. Smith

    3818 posts

    Justin,

    Don’t hesitate to post again when you need more assistance.

    Sean

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

ExpressionEngine News!

#eecms, #events, #releases