Skip to content
Snippets Groups Projects
Commit cdf14086 authored by jurgenhaas's avatar jurgenhaas
Browse files

#21 Update drush/sites/default.site.yml and drush/drush.yml for Drush 9

parent d2e8dd92
No related branches found
No related tags found
No related merge requests found
...@@ -208,7 +208,7 @@ To overwrite the default settings for the Docker environment, add the relevant p ...@@ -208,7 +208,7 @@ To overwrite the default settings for the Docker environment, add the relevant p
"sql": { "sql": {
"tables": { "tables": {
"structure": ["cache", "cache_*", "history", "search_*", "sessions", "watchdog"], "structure": ["cache", "cache_*", "history", "search_*", "sessions", "watchdog"],
"skip": ["none"] "skip": ["migration_*"]
} }
} }
}, },
...@@ -360,8 +360,11 @@ alias cps "docker-compose ps" ...@@ -360,8 +360,11 @@ alias cps "docker-compose ps"
alias clogs "docker-compose logs" alias clogs "docker-compose logs"
alias cstop "docker-compose stop" alias cstop "docker-compose stop"
alias cstart "docker-compose start" alias cstart "docker-compose start"
alias cshell "docker-compose exec -u root php sh" alias cshell "docker-compose exec --user root php sh"
alias cdrush "docker-compose exec -u root php drush" alias cdrush "docker-compose exec --user root php drush"
alias cdrush-pull "cdrush-pull-sql; and cdrush-pull-files"
alias cdrush-pull-sql "cdrush sql:sync --create-db @default.live @default.dev; and cdrush @default.dev cr; and cdrush @default.dev dev on"
alias cdrush-pull-files "cdrush rsync @default.live:%files/ @default.dev:%files -- --chown=www-data:www-data --safe-links --max-size=20M"
``` ```
Do that once, it will pay back in a magnitude. Do that once, it will pay back in a magnitude.
......
...@@ -225,8 +225,8 @@ class Handler { ...@@ -225,8 +225,8 @@ class Handler {
'drushrc.php' => [ 'drushrc.php' => [
'dest' => $projectRoot . '/drush', 'dest' => $projectRoot . '/drush',
], ],
'{{ projectname }}.alias.yml' => [ 'default.site.yml' => [
'dest' => $projectRoot . '/drush', 'dest' => $projectRoot . '/drush/sites',
'add2yaml' => TRUE, 'add2yaml' => TRUE,
], ],
'drush.yml' => [ 'drush.yml' => [
...@@ -269,7 +269,9 @@ class Handler { ...@@ -269,7 +269,9 @@ class Handler {
'sessions', 'sessions',
'watchdog', 'watchdog',
], ],
'skip' => ['none'], 'skip' => [
'migration_*',
],
], ],
], ],
], ],
......
drush: drush:
paths: paths:
config:
- '${env.home}/.drush/config/drush.yml'
include: include:
- './drush/contrib' - './drush/contrib'
options: options:
uri: 'http://{{ projectname }}.docker.localhost:8000' uri: 'http://{{ projectname }}.docker.localhost:8000'
command: command:
core:
rsync:
options:
mode: 'rlDzq'
sql: sql:
options: sync:
structure-tables: options:
common: structure-tables-key: 'common'
skip-tables: 'common'
dump:
options:
structure-tables-key: 'common'
skip-tables: 'common'
sql:
structure-tables:
common:
{% for table in drush.sql.tables.structure %} {% for table in drush.sql.tables.structure %}
- '{{ table }}' - '{{ table }}'
{% endfor %} {% endfor %}
skip-tables: skip-tables:
common: common:
{% for table in drush.sql.tables.skip %} {% for table in drush.sql.tables.skip %}
- '{{ table }}' - '{{ table }}'
{% endfor %} {% endfor %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment