0

I use deployer: https://github.com/deployphp/deployer to deploy my php project, run the dep command in macos bigsur without any problem, but run the dep command in macos monterey will report an error: env: php: No such file or directory.

My php is running in the docker container, the php command is the alias I created, in .zshrc:

php () {
    tty=
    tty -s && tty=--tty
    docker run \
        $tty \
        --interactive \
        --rm \
        --volume $PWD:/www:rw \
        --workdir /www \
        dnmp_php php "$@"
}

What is the possible reason please? Thanks for the answer!

Qiang Miao
  • 51
  • 4

0 Answers0