Bootstrap - Switch default boot process. Update docs.#145
Bootstrap - Switch default boot process. Update docs.#145totten wants to merge 1 commit intocivicrm:masterfrom
Conversation
|
OK, there were a lot of failures relating to the eval(`cv php:boot`);
echo CRM_Utils_System::version();So I added an implementation for It does point to another discrepancy though -- the That will be a blocker - it's needed for various test-suites to work properly. |
|
A second issue with switching default - on Backdrop, |
1c89f69 to
5803b79
Compare
595bed2 to
b616645
Compare
|
civibot, test this please |
cvsupports two protocols for booting a full environment with CiviCRM+CMS.--level=fullBootstrap.phpcivicrm-core'scivicrm.config.php. Boots Civi then CMS.CIVICRM_SETTINGS--level=cms-fullCmsBootstrap.phpCIVICRM_BOOTWith this PR,
cvwill preferCmsBootstrap.php. It aims to phase-out the olderBootstrap.php. However, this is a notable policy change, andCmsBootstrap.phphas not been tested as widely. The PR retains some options so that the site-builder can switch between them more easily.Comments
README.mddescribes more about how to use the options.CmsBootstrapought to be better, but it hasn't been used much. And that won't change unless we make it the default. So we'll go ahead with the change. But if anyone needs a way to back out, they can set:export CIVICRM_SETTINGS=AutoTechnical Details
cvsubcommands default to--level=full|cms-full. The PR changes the interpretation offull|cms-full.--level=fullto--level=cms-full.CIVICRM_BOOTalready provided a way to configure theCmsBootstrap.phpprotocol.CIVICRM_BOOTalready signaled an intent to activateCmsBootstrap.php.CIVICRM_SETTINGSalready provided a way to configure/ theBootstrap.phpprotocol.CIVICRM_SETTINGSalso signals an intent to activateBootstrap.php.CIVICRM_BOOTandCIVICRM_SETTINGSaccept a few more values than before:CIVICRM_BOOT=Auto://.will activateCmsBootstrap.phpand allow it to search for the CMS.CIVICRM_SETTINGS=Autowill activateBootstrap.phpand allow it to search for CiviCRM.