Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Docker for Drupal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Composer
plugin
Docker for Drupal
Commits
cdf14086
Commit
cdf14086
authored
7 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
#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
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
README.md
+6
-3
6 additions, 3 deletions
README.md
src/Handler.php
+5
-3
5 additions, 3 deletions
src/Handler.php
templates/default.site.yml.twig
+0
-0
0 additions, 0 deletions
templates/default.site.yml.twig
templates/drush.yml.twig
+21
-7
21 additions, 7 deletions
templates/drush.yml.twig
with
32 additions
and
13 deletions
README.md
+
6
−
3
View file @
cdf14086
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
src/Handler.php
+
5
−
3
View file @
cdf14086
...
@@ -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_*'
,
],
],
],
],
],
],
],
...
...
This diff is collapsed.
Click to expand it.
templates/
{{ projectname }}.alias
.yml.twig
→
templates/
default.site
.yml.twig
+
0
−
0
View file @
cdf14086
File moved
This diff is collapsed.
Click to expand it.
templates/drush.yml.twig
+
21
−
7
View file @
cdf14086
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
%}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment