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
"sql": {
"tables": {
"structure": ["cache", "cache_*", "history", "search_*", "sessions", "watchdog"],
"skip": ["none"]
"skip": ["migration_*"]
}
}
},
......@@ -360,8 +360,11 @@ alias cps "docker-compose ps"
alias clogs "docker-compose logs"
alias cstop "docker-compose stop"
alias cstart "docker-compose start"
alias cshell "docker-compose exec -u root php sh"
alias cdrush "docker-compose exec -u root php drush"
alias cshell "docker-compose exec --user root php sh"
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.
......
......@@ -225,8 +225,8 @@ class Handler {
'drushrc.php' => [
'dest' => $projectRoot . '/drush',
],
'{{ projectname }}.alias.yml' => [
'dest' => $projectRoot . '/drush',
'default.site.yml' => [
'dest' => $projectRoot . '/drush/sites',
'add2yaml' => TRUE,
],
'drush.yml' => [
......@@ -269,7 +269,9 @@ class Handler {
'sessions',
'watchdog',
],
'skip' => ['none'],
'skip' => [
'migration_*',
],
],
],
],
......
drush:
paths:
config:
- '${env.home}/.drush/config/drush.yml'
include:
- './drush/contrib'
options:
uri: 'http://{{ projectname }}.docker.localhost:8000'
command:
core:
rsync:
options:
mode: 'rlDzq'
sql:
options:
structure-tables:
common:
sync:
options:
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 %}
- '{{ table }}'
- '{{ table }}'
{% endfor %}
skip-tables:
common:
skip-tables:
common:
{% for table in drush.sql.tables.skip %}
- '{{ table }}'
- '{{ table }}'
{% 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