Installation - Support "activate first" w/setup UI #606
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
This adds support for installing CiviCRM-Drupal through the Setup API. Most notable changes:
install/index.php
entry-point)Note: This is a port of civicrm/civicrm-backdrop#121 to D7.
Before
The sysadmin downloads the CiviCRM module - but they must not install it. Instead, navigate to this path:
This is a special, standalone entry-point.
After
After downloading the CiviCRM module, you simply enable it like any module. Then use any link to open a CiviCRM page (e.g. there are links in the post-install status-message and in the main menu). The page will display the setup screen.
For a sense of how it looks, here's a screenshot+mp4 from the Backdrop variant:
http://think.hm/tmp/Backdrop-Civicrm-Setup.mp4
Technical Details
civicrm.settings.php
). Many already do - there were just a couple oddballs.civicrm/*
URLs. If CiviCRM cannot initialize, then show the civicrm-setup web installer.r-run
ning, here are some of things that I tried:cv core:install -vv --cms-base-url=http://dmaster.bknix:8001
), with thecivicrm.module
enabled or disabledcivibuild
with thedrupal-demo
type - ie hackapp/config/demo-demo/install.sh
to skip most of the install logic. Then runcivibuild create dmaster
orcivibuild reinstall dmaster
)civibuild snapshot dmaster
). (This way my login-session is part of the snapshot.)./bin/cv.phar core:uninstall -f ; civibuild restore dmaster ; rm -rf ~/bknix/build/dmaster/web/files/civicrm/