Heroku-在本地运行应用程序(PHP)

我目前正在尝试在Windows机器上本地运行简单的应用程序(通过Heroku服务器上的github部署它时可以使用)。 我已经为项目安装并配置了Heroku CLI。 在我的composer.json中,我有:

"require-dev": {
  "heroku/heroku-buildpack-php": "*"
}

Procfile

web: vendor/bin/heroku-php-apache2 web/

但是当我尝试运行“ heroku local”时,我得到了:

web.1   |  'vendor' is not recognized as an internal or external command,web.1   |  operable program or batch file.
[DONE] Killing all processes with signal  SIGINT
web.1   Exited with exit code null

更新: 如果我尝试手动运行heroku-php-apache2文件,则会得到:

The system cannot find the path specified.

但是指定的路径实际上是正确的路径,并指向... / vendor / bin / heroku-php-apache2

hinaliuyinyuan1 回答:Heroku-在本地运行应用程序(PHP)

您的答案在这里,并在暂存模式下运行composer update,然后它将安装heroku/heroku-buildpack-php 'vendor' is not recognized as an internal or external command I'm using windows 10. what should I do?

本文链接:https://www.f2er.com/2900640.html

大家都在问