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
7320bb29
Commit
7320bb29
authored
6 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Improve ahoy command
parent
5196dfd9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ahoy.drush.yml
+11
-11
11 additions, 11 deletions
ahoy.drush.yml
ahoy.yml
+6
-3
6 additions, 3 deletions
ahoy.yml
with
17 additions
and
14 deletions
ahoy.drush.yml
+
11
−
11
View file @
7320bb29
ahoyapi
:
v2
commands
:
exec
:
cmd
:
docker-compose exec --user root php
drush "$@"
cmd
:
ahoy d4d exec
drush "$@"
usage
:
Run Drush in PHP container
pull
:
cmd
:
|
docker-compose exec --user root php drush
sql:sync --create-db @default.live @default.dev
docker-compose exec --user root php drush
@default.dev cr
docker-compose exec --user root php drush
@default.dev dev on
docker-compose exec --user root php drush
@default.dev cim --partial --source=/var/www/html/config/default/environments/develop
docker-compose exec --user root php drush
rsync @default.live:%files/ @default.dev:%files -- --chown=www-data:www-data --safe-links --max-size=20M
ahoy drush exec
sql:sync --create-db @default.live @default.dev
ahoy drush exec
@default.dev cr
ahoy drush exec
@default.dev dev on
ahoy drush exec
@default.dev cim --partial --source=/var/www/html/config/default/environments/develop
ahoy drush exec
rsync @default.live:%files/ @default.dev:%files -- --chown=www-data:www-data --safe-links --max-size=20M
usage
:
Pull files and DB from live site
pull-sql
:
cmd
:
|
docker-compose exec --user root php drush
sql:sync --create-db @default.live @default.dev
docker-compose exec --user root php drush
@default.dev cr
docker-compose exec --user root php drush
@default.dev dev on
docker-compose exec --user root php drush
@default.dev cim --partial --source=/var/www/html/config/default/environments/develop
ahoy drush exec
sql:sync --create-db @default.live @default.dev
ahoy drush exec
@default.dev cr
ahoy drush exec
@default.dev dev on
ahoy drush exec
@default.dev cim --partial --source=/var/www/html/config/default/environments/develop
usage
:
Pull DB from live site
pull-files
:
cmd
:
|
docker-compose exec --user root php drush
rsync @default.live:%files/ @default.dev:%files -- --chown=www-data:www-data --safe-links --max-size=20M
ahoy drush exec
rsync @default.live:%files/ @default.dev:%files -- --chown=www-data:www-data --safe-links --max-size=20M
usage
:
Pull files from live site
This diff is collapsed.
Click to expand it.
ahoy.yml
+
6
−
3
View file @
7320bb29
ahoyapi
:
v2
commands
:
exec
:
cmd
:
docker-compose exec --user root php "$@"
hide
:
true
c
:
cmd
:
docker-compose "$@"
usage
:
Run docker-compose
...
...
@@ -23,11 +26,11 @@ commands:
usage
:
Run docker-compose start
fs
:
cmd
:
|
docker-compose exec --user root php
chown -R www-data:www-data .
docker-compose exec --user root php
chmod -R g+w .
ahoy d4d exec
chown -R www-data:www-data .
ahoy d4d exec
chmod -R g+w .
usage
:
Open shell in the PHP container
shell
:
cmd
:
docker-compose exec --user root php
/bin/bash "$@"
cmd
:
ahoy d4d exec
/bin/bash "$@"
usage
:
Open shell in the PHP container
update
:
cmd
:
composer lakedrops:docker4drupal
...
...
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