Sunday, September 29, 2013

Re: Sharing one Cake application with many domains, each with its own database

I've had previous experience with something similar, but with Joomla installations and an arrangement of symlinks.

My advice would be not to set up cake this way.  Whilst it's convenient when things are going well, it's very very bad when things go south.  It's not just one site that suffers, it's all of them. Especially if you have a database upgrade : all the sites on the machine have to go down while the database upgrades are applied, rather than one at a time.

Find a more automated way to do deployments, rather than do symlinks.  Previously, I've used capistrano to automate deployments via SSH, but I've had it in the back of my mind to also check out Fabric (python based). I wish there was something PHP based that also targeted Windows environments, but the best I've been able to come up with there is the usage of Phing (Ant for PHP) and FileSystem copies.

On Saturday, 28 September 2013 07:03:15 UTC+10, WebA wrote:
Hello,

We have a shared hosting server that hosts many domains (we will assume that the amount will be scalable).  We develop a Cake application and each domain has a copy of the application's files.  Each copy of the application connects to each domain's database.

Deploying updates to each domain is an incredibly tiresome and tedious process.  We want to consider alternative setups that will make this process easier.

We have thought of one alternative, but are unsure of the scalability of them:
  • Place one copy of the Cake application on the server and create sym links for the shared files.  Domain specific files will of course be unique for each domain

Has anyone had a similar issue or experience?

If anyone has any suggestions or previous experience with a similar issue, please share!

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: