Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.

Commit

Permalink
Add Tugboat configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
TravisCarden committed Apr 30, 2024
1 parent 14a61a1 commit 53d4284
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .tugboat/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# https://docs.tugboatqa.com/reference/tugboat-configuration/
# https://docs.tugboatqa.com/starter-configs/tutorials/drupal-10/
services:
webserver:
image: tugboatqa/php:8.3-apache
default: true
commands:
init:
- docker-php-ext-install opcache
- a2enmod headers rewrite
- echo "memory_limit = -1" >> /usr/local/etc/php/conf.d/my-php.ini
- ln -snf "${TUGBOAT_ROOT}/web" "${DOCROOT}"
build:
- composer install
- composer run drupal:install

# Make sure files and translations folders exist and are writable.
- mkdir -p "${DOCROOT}/sites/default/files/translations"
- chgrp -R www-data "${DOCROOT}/sites/default/files"
- find "${DOCROOT}/sites/default/files" -type d -exec chmod 2775 {} \;
- find "${DOCROOT}/sites/default/files" -type f -exec chmod 0664 {} \;

# Enable verbose error logging (debug mode).
- ./vendor/bin/drush config:set --yes system.logging error_level verbose
- ./vendor/bin/drush config:get system.logging error_level

0 comments on commit 53d4284

Please sign in to comment.