

$civicrm_setting = '/libraries/civicrm/tools/extensions//css/custom-civicrm.In this guide, we'll convert a standard Drupal 8 site to use Composer to manage deployments and dependencies, then switch from drops-8 to the new Integrated Composer drupal-composer-managed upstream while remaining on Drupal 8.ĭuring this process, you will create a new branch based on the Git history of the new upstream. + $civicrm_paths = '/libraries/civicrm/core/' Thusfar, the only small edits I made to the are: - $civicrm_paths = '/libraries/civicrm/' Below is a list of the specific tools I use:īecause you'll be switching environments between pantheon and lando the and files from the original roundearth projects are super handy! To bring your local site to live and have the ability to easily pull code, database or files - you can do so by using Lando. Setting up a local development environment for your pantheon site. J) Visit your Drupal8/CiviCRM site! You'll likely need to clear the usual CiviCRM caches and possibly Drupal caches as well.
#DRUPAL 9 PANTHEON INSTALL#
# install CiviCRM Core and CiviCRM Theme via GUI

# you can also find your SFTP connection info on your pantheon dashboard -> Connect with SFTP -> cd /srv/bindings/ Terminus connection:info $PANTHEON_SITE_v terminus connection:set $PANTHEON_SITE_v sftp I) And now CiviCRM! Because the /sites/default directory is not writable on pantheon after installing Drupal -> we followed this workaround. # visit your dev site - log in with the credentials above or create yourself a drush uli at any time: Terminus drush $PANTHEON_SITE_v - site-install -y H) It's time to install Drupal! terminus connection:set $PANTHEON_SITE_v sftp Git commit -m 'Drupal8, CiviCRM and dependencies' Terminus connection:set $PANTHEON_SITE_v git Mv vendor/civicrm/civicrm-core/.gitignore vendor/civicrm/civicrm-core/dontgitignore gitignore file includes bower_components which when excluded results in interesting meltdown menus G) It's time to beam this up to Pantheon composer run-script -no-dev prepare-for-pantheon composer require civicrm/civicrm-core:5.24.6 -no-updateĬomposer require civicrm/civicrm-packages:5.24.6 -no-updateĬomposer require civicrm/civicrm-drupal-8:5.24.6 -no-updateĬomposer require civicrm/civicrm-asset-plugin:~1.0.1 -no-update I ended up having to set the php memory_limit to 3G! Here I'll describe the steps that work if you have less memory_limit to work with. You can even use dev-master! When trying to composer require everything at once composer complained about memory_limit.
#DRUPAL 9 PANTHEON UPDATE#
In composer.json -> update the requirement for minimum stability to: "minimum-stability": "dev",į) Pull in CiviCRM! I'm using CiviCRM version 5.24.6 in this example - replace these digits with your favourite CiviCRM version. Script: private/scripts/quicksilver/quicksilver-pushback/push-back-to-github.php Update the scripts section to remove the lint, code-sniff, and unit-test lines.ĭescription: Push changes back to GitHub if needed Remove all dependencies in the require-dev section. Delete the following directories and files: rm -rf scripts/github Head on over to your pantheon dashboard and you should see your new project! The following steps are required to get it up and functional:ī) Back in the shell on your local workspace: the next step is to remove the Continuous Integration bits. Git remote set-url origin $PANTHEON_SITE_GIT_URL Terminus site:create $PANTHEON_SITE_NAME 'citius88.ca' empty -org 'Semper IT inc' -region 'Canada'Įxport PANTHEON_SITE_GIT_URL="$(terminus connection:info $PANTHEON_SITE_v -field=git_url)" Optional: hook it up to your organization account (if you have one on pantheon.io) and set your favourite region! mkdir citius88 Install the Drupal8/CiviCRM locally or on another server that you have command line access toĪ) Create a designated directory, set your site_name to your project name (my project here is called citius88 -> the url is going to be citius88.ca). These follow these docs for the CiviCRM installation instructions. If you're not on Pantheon the steps are a little easier! First install Drupal - e.g.: composer create-project drupal/recommended-project:^8.9 myd8site.local If you have a pantheon.io account and if you have set up terminus to interact with your pantheon projects then you should be able to follow along! This post describes our adventures in getting Drupal8/CiviCRM to work on Pantheon. I've been exploring the workflow tools on the pantheon.io platform.
