heroku app未运行

时间:2016-02-06 22:01:33

标签: php codeigniter heroku

所以我部署了我的heroku应用程序,但它说 应用程序中发生错误,无法提供您的页面。请稍后重试。我的应用程序正在使用PHP框架codeigniter来运行。

如果您是应用程序所有者,请查看日志以获取详细信息。

So I checked my logs and all over internet but couldnt find something useful.
here is my logs
    2016-02-06T23:00:43.872338+00:00 heroku[api]: Deploy daf6554 by masnadhossain@live.com
2016-02-06T23:00:43.872338+00:00 heroku[api]: Release v17 created by masnadhossain@live.com
2016-02-06T23:00:43.995562+00:00 heroku[slug-compiler]: Slug compilation started
2016-02-06T23:00:43.995568+00:00 heroku[slug-compiler]: Slug compilation finished
2016-02-06T23:00:44.023373+00:00 heroku[web.1]: State changed from crashed to starting
2016-02-06T23:00:48.465994+00:00 heroku[web.1]: Starting process with command `vendor/bin/heroku-php-apache2`
2016-02-06T23:00:50.615984+00:00 app[web.1]: Optimizing defaults for 1X dyno...
2016-02-06T23:00:50.756965+00:00 app[web.1]: Starting php-fpm...
2016-02-06T23:00:50.749042+00:00 app[web.1]: 4 processes at 128MB memory limit.
2016-02-06T23:00:52.759245+00:00 app[web.1]: Starting httpd...
2016-02-06T23:00:53.367150+00:00 heroku[web.1]: State changed from starting to up
2016-02-06T23:01:05.248173+00:00 heroku[router]: at=info method=GET path="/" host=protected-headland-51216.herokuapp.com request_id=7d0b1679-ebc3-456c-9606-40772c1c17e9 fwd="80.220.234.138" dyno=web.1 connect=1ms service=127ms status=404 bytes=1362
2016-02-06T23:01:05.246066+00:00 app[web.1]: 10.35.215.56 - - [06/Feb/2016:23:01:05 +0000] "GET / HTTP/1.1" 404 1130 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.97 Safari/537.36
Nihits-MacBook-Pro:pocketAllowence nihit$ 

我注意到的另一件事是我的供应商文件出错了。 enter image description here

但我跟随了很多其他人的例子,把它放在gitignore上并试图删除它。但我所做的一切似乎都无法发挥作用。

所以这是错误 enter image description here

1 个答案:

答案 0 :(得分:1)

您的文件路径缺少'/'。 尝试将vendor/bin/heroku-php-apache2/web/更改为{{1}}。

文件路径不喜欢空格。