Laravel 5 Heroku Local不起作用 [英] Laravel 5 Heroku Local doesn't work

查看:121
本文介绍了Laravel 5 Heroku Local不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经成功地将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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆