zhenorzz/goploy

在部署后执行脚本,执行失败,提示/usr/bin/env: "php": 没有那个文件或目录

liaomars opened this issue · 0 comments

Describe the bug
部署一个PHP项目,在执行部署后运行执行脚本,失败

To Reproduce
Steps to reproduce the behavior:

  1. 在项目那里的执行后脚本,填入了 composer install
  2. 执行构建报错:exit status 127 output: /usr/bin/env: "php": 没有那个文件或目录,但是在目标服务器,是可以执行composer命令
  3. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
image

APP (please complete the following information):

  • OS: Ubuntu22.04
  • Version 1.16.2
  • Browser chrome

Additional context
Add any other context about the problem here.