【问题标题】:Zend Framework 2 project crashing on herokuZend Framework 2 项目在 Heroku 上崩溃
【发布时间】:2014-08-18 06:32:49
【问题描述】:

我使用tutorial 作为在 heroku 上设置 zf2 项目的指南。该应用程序部署在 heroku 上,但测功机在此之后突然崩溃并且不加载项目。

从日志中可以看出,无法打开根目录下heroku文件夹中的web-boot.sh文件。

以下是我的日志跟踪

2014-08-18T06:10:39.793559+00:00 heroku[web.1]: Starting process with command `sh www/heroku/web-boot.sh`
2014-08-18T06:10:40.635178+00:00 app[web.1]: sh: Can't open www/heroku/web-boot.sh
2014-08-18T06:10:41.380597+00:00 heroku[web.1]: State changed from starting to crashed
2014-08-18T06:10:41.380597+00:00 heroku[web.1]: State changed from crashed to starting
2014-08-18T06:10:41.368316+00:00 heroku[web.1]: Process exited with status 2
2014-08-18T06:10:48.431308+00:00 app[web.1]: sh: Can't open www/heroku/web-boot.sh
2014-08-18T06:10:47.975671+00:00 heroku[web.1]: Starting process with command `sh www/heroku/web-boot.sh`
2014-08-18T06:10:49.122386+00:00 heroku[web.1]: Process exited with status 2
2014-08-18T06:10:49.133922+00:00 heroku[web.1]: State changed from starting to crashed
2014-08-18T06:10:50.371350+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=helpost.herokuapp.com request_id=3e957942-3456-4513-a713-ea99d0154926 fwd="54.81.202.247" dyno= connect= service= status=503 bytes=
2014-08-18T06:20:16.319906+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=helpost.herokuapp.com request_id=e7a0f7c3-1e15-4ad1-a327-c7f95fb79421 fwd="171.78.32.46" dyno= connect= service= status=503 bytes=
2014-08-18T06:20:18.297172+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=helpost.herokuapp.com request_id=64877d05-01c4-4fbc-b1dc-ab91e1f8aa21 fwd="171.78.32.46" dyno= connect= service= status=503 bytes=

谁能帮我解决这个问题?完成这件事对我来说真的很重要!

谢谢

【问题讨论】:

    标签: php heroku zend-framework2 composer-php


    【解决方案1】:

    您不再需要任何这些说明。信息陈旧过时; Heroku 现在正式支持 PHP,包括 Composer。

    更改Procfile 条目:

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

    这应该就是你所需要的。您也可以删除heroku/ 目录。

    请阅读文档:https://devcenter.heroku.com/categories/php

    【讨论】:

      猜你喜欢
      • 2011-05-18
      • 2018-11-01
      • 1970-01-01
      • 2014-11-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多