Commit 2ba57b94 authored by Jürgen Haas's avatar Jürgen Haas

#24 Add support for ahoy

parent 4f7e20cf
ahoyapi: v2
commands:
exec:
cmd: docker-compose exec --user root php 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 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
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
usage: Pull files from live site
ahoyapi: v2
commands:
c:
cmd: docker-compose "$@"
usage: Run docker-compose
b:
cmd: docker-compose build "$@"
usage: Run docker-compose build
up:
cmd: docker-compose up -d "$@"
usage: Run docker-compose up
ps:
cmd: docker-compose ps "$@"
usage: Run docker-compose ps
logs:
cmd: docker-compose logs "$@"
usage: Run docker-compose logs
stop:
cmd: docker-compose stop "$@"
usage: Run docker-compose stop
start:
cmd: docker-compose start "$@"
usage: Run docker-compose start
shell:
cmd: docker-compose exec --user root php sh "$@"
usage: Open shell in the PHP container
update:
cmd: composer d4d "$@"
usage: Update Docker4Drupal setup in project
......@@ -50,6 +50,14 @@
"callback": "LakeDrops\\Docker4Drupal\\Plugin::config",
"description": "(Re-)Configure docker for this project."
}
},
"ahoy": {
"d4d": {
"ahoy.yml": "Docker for Drupal"
},
"drush": {
"ahoy.drush.yml": "Drush in Docker for Drupal"
}
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment