Closed bogdandubyk closed 3 years ago
I made it work adding all variables like GRUMPHP_PROJECT_DIR
GRUMPHP_GIT_WORKING_DIR
GRUMPHP_BIN_DIR
GRUMPHP_GIT_REPOSITORY_DIR
, but now I'm getting error
git commit 1 err | % | 15:43:38
vendor/phpro/grumphp/bin/grumphp: line 2: ?php: No such file or directory
vendor/phpro/grumphp/bin/grumphp: line 4: use: command not found
vendor/phpro/grumphp/bin/grumphp: line 5: use: command not found
vendor/phpro/grumphp/bin/grumphp: line 6: use: command not found
vendor/phpro/grumphp/bin/grumphp: line 8: syntax error near unexpected token `('
vendor/phpro/grumphp/bin/grumphp: line 8: `(function () {'
Hello @bogdandubyk ,
You are executing grumphp with bash.
You can try changing it?
grumphp:
git_hook_variables:
EXEC_GRUMPHP_COMMAND: docker-compose -f ../devops/docker/docker-compose.yaml exec php-fpm php
I assume the solution provided fixed the issue. Feel free to create another issue if this is still a problem.
1.3.1
I have used grumphp version below 1 on few previous projects and all worked fine under docker, but I can't make it work with version
1.3.1
My configuration
I do not have git in the docker container, so I'm committing from a local machine where I do not have PHP installed and grumph not triggering. From container I did
./vendor/bin/grumphp git:init
. Also I tried to override hooks_dir and add own hook likebut it's not working either
I know I'm doing something wrong, but not sure what....