Commit 7320bb29 authored by Jürgen Haas's avatar Jürgen Haas

Improve ahoy command

parent 5196dfd9
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
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
......
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