Closed rivassh closed 9 months ago
Does the container have php installed? Instead of 'sh', you might need to use 'php' ?
Hello,
I can use :
grumphp:
git_hook_variables:
EXEC_GRUMPHP_COMMAND: docker exec -i -u DOCKER_USER -w PROJECT_DIR php
Where :
DOCKER_USER
is the docker user (ex: root)PROJECT_DIR
is le project directory (ex: /home/project/testphp
is the container name frome container_name
in my docker-composer file⚠️ After changing this value on grumphp.yaml
you must launch command vendor/bin/grumphp configure
to rewrite file .git/hooks/pre-commit
Hope it will help you.
Regards
I consider this one answered. Feel free to reopen if not.
when I change execute to docker-compose, it doesn't work: