Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bootstrap
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
bootstrap
Merge requests
!3
Issue
#3201358
: Add live preview support
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Open
Issue
#3201358
: Add live preview support
issue/bootstrap-3201358:3201358-add-live-preview
into
8.x-4.x
Overview
1
Commits
4
Pipelines
0
Changes
1
Open
Issue #3201358: Add live preview support
Juampy NR
requested to merge
issue/bootstrap-3201358:3201358-add-live-preview
into
8.x-4.x
Mar 3, 2021
Overview
1
Commits
4
Pipelines
0
Changes
1
0
0
Merge request reports
Compare
8.x-4.x
version 7
b179e25c
Mar 3, 2021
version 6
8a7076ef
Mar 3, 2021
version 5
8a7076ef
Mar 3, 2021
version 4
6b729dfe
Mar 3, 2021
version 3
6b729dfe
Mar 3, 2021
version 2
044ed830
Mar 3, 2021
version 1
044ed830
Mar 3, 2021
8.x-4.x (HEAD)
and
latest version
latest version
b179e25c
4 commits,
Mar 3, 2021
version 7
b179e25c
4 commits,
Mar 3, 2021
version 6
8a7076ef
3 commits,
Mar 3, 2021
version 5
8a7076ef
3 commits,
Mar 3, 2021
version 4
6b729dfe
2 commits,
Mar 3, 2021
version 3
6b729dfe
2 commits,
Mar 3, 2021
version 2
044ed830
1 commit,
Mar 3, 2021
version 1
044ed830
1 commit,
Mar 3, 2021
1 file
+
59
−
0
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
.tugboat/config.yml
0 → 100644
+
59
−
0
View file @ cf58b8c4
Edit in single-file editor
Open in Web IDE
services
:
php
:
image
:
q0rban/tugboat-drupal:8.8
default
:
true
http
:
false
depends
:
mysql
commands
:
update
:
|
set -eux
# Increase memory limit.
echo "memory_limit = 3G" >> /usr/local/etc/php/conf.d/my-php.ini
# Check out a branch using the unique Tugboat ID for this repository, to
# ensure we don't clobber an existing branch.
git checkout -b $TUGBOAT_REPO_ID
# This is an environment variable we added in the Dockerfile that
# provides the path to Drupal composer root (not the web root).
cd $DRUPAL_COMPOSER_ROOT
# We configure the Drupal project to use the checkout of the module as a
# Composer package repository.
composer config repositories.tugboat vcs $TUGBOAT_ROOT
# Now we can require this theme, specifing the branch name we created
# above that uses the $TUGBOAT_REPO_ID environment variable.
composer require drupal/bootstrap:dev-$TUGBOAT_REPO_ID -vvv
# Install Drupal on the site.
vendor/bin/drush \
--yes \
--db-url=mysql://tugboat:tugboat@mysql:3306/tugboat \
--site-name=Bootstrap \
--account-pass=admin \
site:install standard
# Enable the theme.
vendor/bin/drush --yes theme:enable bootstrap
# Set the theme as default.
vendor/bin/drush --yes config-set system.theme default bootstrap
# Rebuild cache.
vendor/bin/drush cache:rebuild
# Set up the files directory permissions.
mkdir -p $DRUPAL_DOCROOT/sites/default/files
chgrp -R www-data $DRUPAL_DOCROOT/sites/default/files
chmod 2775 $DRUPAL_DOCROOT/sites/default/files
chmod -R g+w $DRUPAL_DOCROOT/sites/default/files
build
:
|
set -eux
# Delete and re-check out this branch in case this is built from a Base Preview.
git branch -D $TUGBOAT_REPO_ID || true
git checkout -b $TUGBOAT_REPO_ID || true
cd $DRUPAL_COMPOSER_ROOT
composer install --optimize-autoloader
# Update this module, including all dependencies.
composer update drupal/bootstrap --with-all-dependencies
vendor/bin/drush --yes updb
vendor/bin/drush cache:rebuild
mysql
:
image
:
tugboatqa/mariadb
Loading