【问题标题】:Heroku open and get 502 error with CodeigniterHeroku 打开并使用 Codeigniter 得到 502 错误
【发布时间】:2016-03-27 21:18:01
【问题描述】:

刚刚检查了我的日志,我收到了这个错误:

2015-12-21T17:41:06.304648+00:00 app[web.1]: [Mon Dec 21 17:41:06.303907 2015] [autoindex:error] [pid 100:tid 139688442590976] [client 10.147.38.224:15662] AH01276: Cannot serve directory /app/: No matching DirectoryIndex (index.php,index.html,index.htm) found, and server-generated directory index forbidden by Options directive.

发生了什么事?

【问题讨论】:

  • 你能提供更多的上下文吗?
  • 当然。在我的终端 - 输入 heroku open 以启动我的应用程序,我使用 Heroku 日志收到 403 错误 FORBIDDEN (NOT 502) 我遇到了上述错误。

标签: php codeigniter heroku


【解决方案1】:

这可能是您没有正确设置 Heroku 环境的问题...您是否已阅读所有文档?您的应用根目录中有 Procfile 设置吗?

使用 Procfile(应用程序根目录中的文本文件)明确声明应执行什么命令来启动应用程序。

https://devcenter.heroku.com/articles/getting-started-with-php#define-a-procfile

【讨论】:

    猜你喜欢
    • 2023-04-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-04-02
    • 2016-12-19
    • 2020-02-05
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多