我生成了一个新的Laravel应用程序,并使用Heroku PHP Buildpack将其部署到heroku。
我按照this answer的建议定义了 Procfile :
web: $(composer config bin-dir)/heroku-php-apache2
但是当我部署应用程序或运行heroku local
时,错误仍然存在。
$ heroku buildpacks:set https://github.com/heroku/heroku-buildpack-php
$ heroku local
▸ heroku-cli: update available from 6.13.13 to 6.14.24-72dfccf
[OKAY] Loaded ENV .env File as KEY=VALUE Format
12:42:33 PM web.1 | /bin/sh: vendor/bin/heroku-php-apache2: No such file or directory
12:42:33 PM web.1 Exited with exit code 127
为什么heroku-php-apache2未定义,如何将我的Laravel应用程序部署到Heroku?