Skip to content

Commit

Permalink
#508 Use drush (#536)
Browse files Browse the repository at this point in the history
  • Loading branch information
kierenevans authored Jan 22, 2021
1 parent 8d3af3e commit c8a5658
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 19 deletions.
4 changes: 0 additions & 4 deletions src/drupal8/application/skeleton/composer.json.twig
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"composer/installers": "^1.0",
"cweagans/composer-patches": "^1.5.0",
"drupal/admin_toolbar": "^1.0",
"drupal/console": "^1.0, != 1.9.5",
"drupal/core-composer-scaffold": "~8.9",
"drupal/core-recommended": "~8.9",
"drupal/ctools": "^3.0",
Expand Down Expand Up @@ -111,9 +110,6 @@
"enable-patching": true,
"composer-exit-on-patch-failure": true,
"patches": {
"drupal/console": {
"Fix drupal site:install using extension.list.module": "https://patch-diff.githubusercontent.com/raw/hechoendrupal/drupal-console/pull/4277.patch"
}
},
"installer-paths": {
"docroot/core": [
Expand Down
22 changes: 7 additions & 15 deletions src/drupal8/harness.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,31 +42,23 @@ attributes:
install:
steps:
- |
passthru drupal site:install standard \
--langcode=en \
\
--db-type=mysql \
"--db-host=${DB_HOST}" \
"--db-name=${DB_NAME}" \
"--db-user=${DB_USER}" \
"--db-pass=${DB_PASS}" \
"--db-port=3306" \
\
passthru drush site:install standard \
--locale=en \
--site-name=Drupal \
[email protected] \
\
--account-name=admin \
[email protected] \
--account-pass=admin123
--account-pass=admin123 \
--yes
- run chmod 755 /app/docroot/sites/default
- task overlay:apply
- task assets:dump
migrate:
steps:
- run drupal cache:rebuild
- run drupal update:entities
- run drupal update:execute
- run drupal cache:rebuild
- run drush cache:rebuild
- run drush updatedb
- run drush cache:rebuild
cron:
jobs:
- = '*/5 * * * * /cron-run-with-env.sh /app/bin/drush --root="/app/' ~ @('drupal.docroot') ~ '" cron'
Expand Down

0 comments on commit c8a5658

Please sign in to comment.