Jump to:

23479 Posts in 18951 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Shared, multi-site hosting and subversion best practices

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1544 Views
  • geoffmcqueen
    Community Member
    11 Posts

    Shared, multi-site hosting and subversion best practices Link to this post

    I'm wondering whether any of the experts here can provide any advice on the best way to set up a shared server to host multiple SilverStripe powered websites on a single server. We're already using named based virtual hosting, and my preference is to have a common core version of the Sapphire framework and the CMS directory, as well as other components that are commonly shared. However, hard drive space is cheap, and from what I've seen it might be easier and give us more flexibility to keep it all together and have n copies of Sapphire for each site.

    The second aspect, beyond the deployment, is the management/ maintenance of sites on an ongoing basis. Through the use of the SVN:externals method, I'm wondering whether we can create our own repository for the 'mysite' content, and then tell via externals tell the SVN client when they do an update of the whole site, they should also check/update the Sapphire and CMS content from the main SVN repo.

    Does anyone have any advice about this? I can see there are potentially a lot of pitfalls - particular as upgrades should be managed, with a minimum of surprises, as well as the Sapphire and CMS folders not really being "common", but instead being able to retain our own versions and configuring things as we like, only merging in changes in SS versions deliberately and occasionally - so any advice from the trenches would be much appreciated...

  • Willr
    Forum Moderator
    5502 Posts

    Re: Shared, multi-site hosting and subversion best practices Link to this post

    Hi Geoff,

    Great question. I think there is no 'right' answer but it depends on your setup. For me personally each of my sites is very separate to each other (one might be on 2.3 and the others on 2.4, trunk) so I mantain completely separate sapphire and cms folders for each (managed via externals though). This means if I upgrade one then it won't break the other sites which is what I like. Also upgrading is a matter of changing the externals on the particular site I want to upgrade or simply running svn up to keep it up to date.

    Some firms I've worked with have 1 sapphire and 1 cms folder and symlink those 2 folders into each project. This has a number of benefits namely you can update all your sites in 1 hit and saving on diskspace, downside is you can also break all your sites in 1 hit .

    The SS development team strives to keep branches/2.3 and 2.4 stable for day to day usage so I just run my cms, sapphire externals directly off the svn server rather than use my own copy of it (unless you need to keep your own copy and merge individually).

  • biapar
    Forum Moderator
    435 Posts

    Re: Shared, multi-site hosting and subversion best practices Link to this post

    I think is good to have one site, one install....

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.