繁体   English   中英

Heroku打开并使用Codeigniter出现502错误

[英]Heroku open and get 502 error with Codeigniter

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

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环境,这可能是一个问题...您是否已阅读所有文档? 您的应用程序根目录中是否有Procfile设置?

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

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM