-
-
Notifications
You must be signed in to change notification settings - Fork 645
Add example for multiple Drupal sites (independent codebases) #2044
Comments
(And just leaving a note since @jonpugh highlighted it—you can use |
Hi, I was hoping to get something similar up. I am hoping to create a headless/backend/data Drupal 8 site w/CiviCRM & its API pointed at the head/frontend/public D8 site with Drutopia. Any links? I tried building them in separate VMs but I accidentally used the same database name which broke both of them. After vagrant destroy on the CiviCRM VM, the Drutopia part started working again. In an effort to update the site, I used a drush cr cmd after vagrant ssh into the VM but it broke the site. Now, the site says site under maintenance even after I halted & vagrant up again. I haven't been able to restore. Please advise. Would these multi-site or multi-VM issues be solved with the 6.0 drupalvm? Thanks a bunch. |
Hi, I use multiple websites(Drupal 7, Drupal 8 - 9, other software like Mautic, Matomo, etc...) per one DrupalVM and so far it has worked with no problem. It's pretty simple to set it up. Hope the bellow configuration helps somebody: You need to allocate a bit more RAM, CPU and a lot more disk space.
Do not install any Drupal by default.
For Drupal7 you need a different nginx template to have it installed properly. For Drupal7 drush9 does not work so you need to install drush8 with composer
|
@lexsoft00 Thanks for sharing that. Just to clarify, you are using multiple instances on the same VM or multiple VMs on the same host/computer? (1) I am trying to have 2 D8 partitions, one with Drutopia (frontend/public/head) & the other with CiviCRM (backend/data/headless). Any tips on having those communicate well together (eg, what kind of API)? (2) Also, any ideas of what might have happened when I did the drush cr (clearing cache) in the VM that cause the site to break (now only saying "site under maintenance"). (3) Should I use DrupalVM 6 (will it improve or increase my problems? Thanks for the info. |
Hi @NYCdude2
There are other steps and packages that you could enable but they are well documented in http://docs.drupalvm.com/en/latest/ and this topic is related only to having multiple website instances in one single DrupalVM |
@lexsoft00 We use Ubuntu 20 on our host & DrupalVM is defaulted to Ubuntu 18. Fixed the drush issue. Just needed toggle the "site under maintenance" button in admin module. Probably need the Drupal8/CivicRM/backend's API to point to the Drutopia/D8/frontend. Do you have any experience with headless systems? especially on your single DrupalVM instances? Thanks for your help. |
Issue Type
Summary
Recently on the #drupal Slack instance, someone was asking about how to get multiple Drupal sites (each one with a separate codebase) configured (and ideally, installed automatically) in a Drupal VM instance.
We currently have a docs page for Drupal multisite, where you have one codebase, and multiple sites (e.g.
local.testone.com
,local.testtwo.com
) all pointed at that one codebase.But some people want to run multiple independent Drupal sites (e.g. one Drupal 7 site and one Drupal 8 site—or Drupal 8 and Drupal 9!) with separate codebases... and I realized the documentation for that is lacking.
I'd like to add a docs page for this use case (and cross-link it with the multisite page), and also maybe drop a YouTube video showing how this is done.
The text was updated successfully, but these errors were encountered: