Closed JPustkuchen closed 2 years ago
Fixed commands:
You can now run: ddev fixedcommand -> to run the command on the current directory or ddev fixedcommand path/to/something -> to run the command on the given directory (just like before)
Genius! :)
Note: Didn't work with ddev 1.19.1!
With ddev 1.21.1 it works!! :)
I think the reason is that
## HostWorkingDir: true
didn't exist in 1.19.
Currently things like
ddev phpunit web/modules/custom/mymodule
have to be executed from the ddev project directory. Otherwise, they won't work work correctly or show errors.Examples:
~/ddev/drupal9/web/modules/custom/fences_block$ ddev phpunit
tests the whole project (core, ...)~/ddev/drupal9/web/modules/custom/fences_block$ ddev phpunit .
returnsAnyway, you're often working inside a module directory to execute your git commands etc. So as a workaround you have to open a 2nd shell or change directories everytime, which isn't perfect.
So best would be for such commands which are useful on subdirectories to be able to execute them just like
ddev phpunit
orddev phpunit .
would also be fine! :)Commands for which this would be useful (but I didn't test their behavior yet):
Other commands should ALWAYS be executed at the top level, like
They should NOT be affected by this change and runnable from any subdirectory without having to change to root.