ahoy help
ahoy mycommand -- myarg1 myarg2 --myoption1 --myoption2=myvalue
ahoy drush cr
ahoy login
If you have Sequel Ace:
ahoy db
Otherwise:
- Run
ahoy info
and grab the DB host port number. - Use these connection details:
- Host:
127.0.0.1
- Username:
drupal
- Password:
drupal
- Database:
drupal
- Port: the port from step 1
- Run
ahoy debug
. - Enable listening for incoming debug connections in your IDE.
- If required, provide server URL to your IDE as it appears in the browser.
- Enable Xdebug flag in the request coming from your web browser (use one of
the extensions or add
?XDEBUG_SESSION_START=1
to your URL). - Set a breakpoint in your IDE and perform a request in the web browser.
Use the same commands to debug CLI scripts.
To disable, run ahoy up
.
- Enable debugging:
ahoy debug
- Enter CLI container:
ahoy cli
- Run Behat tests:
vendor/bin/behat path/to/test.feature
Provided that your stack is already running:
- Switch to your branch
composer install
ahoy site-install
Note that you do not need to rebuild the full stack using ahoy build
every
time.
However, sometimes you would want to have an absolutely clean environment - in
that case, use ahoy build
.
Provided that your stack is already running:
ahoy drush sql-drop -y;
ahoy drush sql-cli < .data/db.sql
composer require drupal/module_name
- Add
title
to patch on https://drupal.org to thepatches
array inextra
section incomposer.json
.
"extra": {
"patches": {
"drupal/core": {
"Contextual links should not be added inside another link": "https://www.drupal.org/files/issues/contextual_links_should-2898875-3.patch"
}
}
}
- Run
composer update --lock`