Laravel 5 Heroku Local不起作用 [英] Laravel 5 Heroku Local doesn't work
问题描述
我已经成功地将Laravel应用程序部署到Heroku。
它可以在线运行。 但是当我尝试运行heroku local:
$ b vendor / bin / heroku-php-apache2:没有这样的文件或目录 p>
这很有道理,因为考虑vendor / bin,唯一列出的是:
psysh - > ../ psy / psysh / bin / psysh
那么,我的heroku-php-apache在哪里?或者我该如何解决这个问题?你应该在你的 composer.json
pre $
require-dev:{
heroku / heroku-buildpack-php:*
}
确保在添加后运行作曲家更新
他们。
I've successfully deployed the Laravel application to Heroku.
It works online.
But when I try to run "heroku local" I get:
vendor/bin/heroku-php-apache2: No such file or directory
Which makes sense, since looking into "vendor/bin", the only thing listed is:
psysh -> ../psy/psysh/bin/psysh
So, where's my heroku-php-apache or how do I fix this?
You should have these lines in your composer.json
"require-dev": {
"heroku/heroku-buildpack-php": "*"
}
be sure to run composer update
after you add them.
这篇关于Laravel 5 Heroku Local不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!