ahoy helpahoy mycommand -- myarg1 myarg2 --myoption1 --myoption2=myvalueahoy drush crahoy loginIf you have Sequel Ace:
ahoy dbOtherwise:
- Run
ahoy infoand 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=1to 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.featureProvided that your stack is already running:
- Switch to your branch
composer installahoy 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.sqlcomposer require drupal/module_name- Add
titleto patch on https://drupal.org to thepatchesarray inextrasection 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`