Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
experience_builder-3485427
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
experience_builder-3485427
Commits
2a600041
Commit
2a600041
authored
1 month ago
by
James Sansbury
Committed by
Alex Bronstein
1 month ago
Browse files
Options
Downloads
Patches
Plain Diff
#3475652
: enable civictheme and set as default on Tugboat previews
parent
b078c110
No related branches found
Branches containing commit
Tags
8.3.6
8.x-3.6
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.tugboat/config.yml
+30
-5
30 additions, 5 deletions
.tugboat/config.yml
with
30 additions
and
5 deletions
.tugboat/config.yml
+
30
−
5
View file @
2a600041
...
...
@@ -23,10 +23,14 @@ services:
# Configure composer to require this module as a symlink.
composer config minimum-stability dev
composer config repositories.tugboat path $TUGBOAT_ROOT
composer require drupal/experience_builder
composer require \
drupal/experience_builder \
drupal/demo_design_system \
drupal/components
# Install Drupal on the site.
vendor/bin/drush \
php -d memory_limit=-1 \
vendor/bin/drush.php \
--yes \
--db-url=mysql://tugboat:tugboat@mysql:3306/tugboat \
--site-name="Live preview for ${TUGBOAT_PREVIEW_NAME}" \
...
...
@@ -35,6 +39,7 @@ services:
# Add tugboat URLs to the Drupal trusted host patterns.
echo "\$settings['trusted_host_patterns'] = ['\.tugboatqa\.com\$'];" >> $DOCROOT/sites/default/settings.php
echo "if (PHP_SAPI === 'cli') {\n ini_set('memory_limit', '-1');\n}" >> $DOCROOT/sites/default/settings.php
# Set up the files directory permissions.
mkdir -p $DRUPAL_DOCROOT/sites/default/files
...
...
@@ -43,7 +48,14 @@ services:
chmod -R g+w $DRUPAL_DOCROOT/sites/default/files
# Enable the module.
vendor/bin/drush --yes pm:install experience_builder media_library
vendor/bin/drush --yes pm:install \
experience_builder \
media_library \
components
# Enable starshot_demo theme.
vendor/bin/drush --yes theme:enable starshot_demo
vendor/bin/drush --yes config:set system.theme default starshot_demo
# Create node/1
vendor/bin/drush scr $TUGBOAT_ROOT/.tugboat/create-article-node.php
...
...
@@ -58,11 +70,24 @@ services:
set -eux
cd $DRUPAL_COMPOSER_ROOT
composer install --optimize-autoloader
# Update this module, including all dependencies.
composer update drupal/experience_builder --with-all-dependencies
# Update packages and dependencies.
composer update --with-all-dependencies \
drupal/experience_builder \
drupal/demo_design_system \
drupal/components
# Run Drupal updates
vendor/bin/drush --yes updb
vendor/bin/drush cache:rebuild
# Update DDS components and fix permissions.
-
npm --prefix $DRUPAL_COMPOSER_ROOT/web/themes/contrib/demo_design_system ci
-
npm --prefix $DRUPAL_COMPOSER_ROOT/web/themes/contrib/demo_design_system run build
-
npm --prefix $DRUPAL_COMPOSER_ROOT/web/themes/contrib/demo_design_system/starshot_demo ci
-
npm --prefix $DRUPAL_COMPOSER_ROOT/web/themes/contrib/demo_design_system/starshot_demo run build
-
chgrp -R www-data $DRUPAL_COMPOSER_ROOT/web/themes/contrib/demo_design_system
# Warm Drupal caches
-
'
curl
--silent
--header
"Host:
$TUGBOAT_DEFAULT_SERVICE_URL_HOST"
http://localhost
>
/dev/null'
mysql
:
image
:
tugboatqa/mariadb
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment