We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

Statamic on Laradock: Git permissions

Jakub Tomek September 25, 2020 by Jakub Tomek

Hello everybody,

I was wondering if any of you guys has experience with making Statamic's git work on Laradock?

Clicking on Statamic > Utilities > Git throws the following error:

Symfony\Component\Process\Exception\RuntimeException The provided cwd "sh: 1: exec: git: not found/" does not exist.

I've spent hours looking into it but cannot fix it.

The problem is with the permissions on /usr/bin/git (where laradock installs git) for the Symphony Process Class (which runs as user www-data).

I tried adding chmod 755 /usr/bin/git to laradock/workspace/Dockerfile as well as chown -R www-data:www-data /usr/bin/git.

And although I can successfully use git from the nginx, php-fmp and workspace containers (or during build via)

RUN if ! command -v git &> /dev/null; then \ echo -e "\033[31mgit could not be found\e[0m" \ ;fi

I cannot get it work from Statamic.

Any help would be greatly appreciated ...

Answered by Jakub Tomek!
>>>>>>> Answered <<<<<<<
1 Reply
1 Follower