-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error: Hooks handler command not found: dredd-hooks-php #25
Comments
@bkuhl dredd has a whitelist of So either switch it to If that doesn't work reopen this issue. |
The usage instructions indicate to use Switching to use just
However I already have the package installed:
|
Where are your composer packages installed? |
I will update the instructions to be correct but the php language flag should look in vendor/bin/dredd-php-hooks so if you have a local composer install it should just work. |
I'm running dredd in it's own Docker container and the working directory in that container was not the same directory where my Thanks for this package, it's pretty sweet :) |
No problem, glad you find it useful. |
Still having issues with it not recognizing composer is installed. I'm actually running dredd inside of a docker container where I have my application mounted. Within the dredd container I can show that
I'm running dredd relative to the root directory with the command:
But I still see the error in the output:
It looks like dredd is providing the instructions on how to install this hooks handler as I can't find anywhere in the source for this package where those instructions are included. Am I correct? |
What is installed inside your docker container, do you have php? Also I would recommend overriding the entrypoint of your container so you can get a shell and play around with the dredd command inside the container and try and launch the hooks server yourself to see why exactly its not finding the command in your current working directory. |
Here is the error you are seeing so if you get a shell inside the dredd container and can't get |
For me, I realized PHP wasn't installed on the Dredd container. |
Yea in a docker environment it actually might make sense to have separate containers for the dredd hooks and dredd itself. |
Like the application and the dredd hooks would live in a php container with apache / nginx / etc. And the dredd container would just need node. |
Dredd version: 2.2.3
Dredd-hooks-php version: 1.1.5
Command:
dredd /var/www/html/resources/docs/api-documentation.apib http://web/api/v1 --level=debug --language dredd-hooks-php --hookfiles /var/www/html/resources/dredd-hooks.php
The error
error: Hooks handler command not found: dredd-hooks-php
is always present. I've retracted my steps and am not able to figure out what I'm doing wrong. Is this version compatible with 2.2.3?The text was updated successfully, but these errors were encountered: