Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jayakrishnanj/eaf851f8fbc3331c9ddcc63963bf8abf to your computer and use it in GitHub Desktop.
Save jayakrishnanj/eaf851f8fbc3331c9ddcc63963bf8abf to your computer and use it in GitHub Desktop.
Step 1: composer create-project acquia/drupal-recommended-project cmsdemo
Step 2: Add Below Lines in Composer.json
"repositories": {
*
*
******* ******* *******
"acquia-cms": {
"type": "vcs",
"url": "https://github.com/acquia/acquia_cms.git",
"no-api": true
}
******* ******* *******
},
Step 3: composer require acquia/acquia_cms
Step 4: composer require acquia/blt-drupal-vm
Known Issue: Try to use DrupalVM Box. 2.0.9 (Latest version 2.0.10 got some issues with MYSQL Setup - https://github.com/geerlingguy/drupal-vm/issues/2022#issuecomment-685066473)
Step 5: Update/Add below lines in blt/blt.yml
**********
profile:
name: acquia_cms
**********
Step 6: blt vm
Step 7: vagrant ssh
Step 8: blt setup
Step 9: drush @cmsdemo.local
Step 10: Add Your cohesion Keys in /docroot/sites/default/settings/local.settings.php
Step 11: drush @cmsdemo.local pm-enable acquia_cms_demo_pubsec -y
TroubleShooting:
If u get error while enabling this module, like below
*******
[notice] Synchronized configuration: create cohesion_base_styles.cohesion_base_styles.paragraph.
[notice] Synchronized configuration: create cohesion_website_settings.cohesion_font_stack.playfair-display.
[notice] Synchronized configuration: update cohesion_base_styles.cohesion_base_styles.unordered_list.
[notice] Finalizing configuration synchronization.
[notice] Building: cohesion_base_styles - 09281a0a-99b1-45fc-a8b3-0efd485dad39
[error] Error: Call to a member function getDecodedJsonValues() on null in Drupal\cohesion\StylesApiPluginBase->processBackgroundImageInheritance() (line 31 of /var/www/cmsdemo/docroot/modules/contrib/cohesion/src/StylesApiPluginBase.php) #0 /var/www/cmsdemo/docroot/modules/contrib/cohesion/modules/cohesion_base_styles/src/Plugin/Api/BaseStylesApi.php(24): Drupal\cohesion\StylesApiPluginBase->processBackgroundImageInheritance(Array)
#1 /var/www/cmsdemo/docroot/modules/contrib/cohesion/src/ApiPluginBase.php(254): Drupal\cohesion_base_styles\Plugin\Api\BaseStylesApi->getForms()
#2 /var/www/cmsdemo/docroot/modules/contrib/cohesion/src/ApiPluginBase.php(620): Drupal\cohesion\ApiPluginBase->prepareData(true)
#3 /var/www/cmsdemo/docroot/modules/contrib/cohesion/modules/cohesion_base_styles/src/Entity/BaseStyles.php(100): Drupal\cohesion\ApiPluginBase->send()
#4 /var/www/cmsdemo/docroot/modules/contrib/cohesion/modules/cohesion_sync/src/PackagerManager.php(295): Drupal\cohesion_base_styles\Entity\BaseStyles->process()
#5 /var/www/cmsdemo/docroot/modules/contrib/cohesion/modules/cohesion_sync/src/PackagerManager.php(383): Drupal\cohesion_sync\PackagerManager->postApplyPackageEntry(Array)
#6 /var/www/cmsdemo/docroot/modules/contrib/cohesion/modules/cohesion_sync/src/PackagerManager.php(151): Drupal\cohesion_sync\PackagerManager->Drupal\cohesion_sync\{closure}(Array)
**************
Solution 1: Try to import assets via UI, /admin/cohesion/configuration/account-settings
Solution 2: Uninstall and Install acquia_cms_demo_pubsec module via drush, will import the styles correctly.
Stpe12: After successfully enabling the module[> [success] Successfully enabled: acquia_cms_demo_pubsec],
If you See any Errors like "Unable to find a component xxx"
Execute below commands
drush @cmsdemo.local cohesion:import && drush @cmsdemo.local cohesion:rebuild
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment