ahoy help
ahoy mycommand -- myarg1 myarg2 --myoption1 --myoption2=myvalue
ahoy drush -- cr
ahoy login
- 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
- If
settings.local.php
does not exist, copydefault.settings.local.php
tosettings.local.php
- Set
$settings['livereload'] = TRUE;
insettings.local.php
file - Clear drupal cache
ahoy drush cr
- Run:
ahoy few
- 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.
Use ahoy up
to restart the stack without Xdebug enabled.
- 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
andurl
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/node/2898875": "https://www.drupal.org/files/issues/contextual_links_should-2898875-3.patch"
}
}
}
composer update --lock