简体   繁体   English

在heroku上部署CodeIgniter Php应用程序

[英]Deploy CodeIgniter Php app on heroku

I am trying to deploy a php application having CodeIgniter as a framework in heroku. 我正在尝试在Heroku中部署具有CodeIgniter作为框架的php应用程序。

I followed the steps here until the "Process and dyno tuning" part and managed to deploy my application. 我按照这里的步骤进行操作直到“处理和动态调整”部分为止,并设法部署了我的应用程序。 The first page works fine, but that's all. 第一页工作正常,仅此而已。 For any other page with codeigniter links(/index.php/home/link/ for the home controller, link action) I try to access, the server renders me the same first page. 对于其他任何带有codeigniter链接的页面(对于home控制器,为/index.php/home/link/,链接操作),我尝试访问,服务器将呈现相同的第一页。 I thought that CI requires some of heroku extensions but here it says it only needs php. 我以为CI需要一些heroku扩展,但在这里它说它只需要php。 Do you happen to know what extensions do i have to provide? 您是否知道我必须提供哪些扩展?

The link to the website is this , and a test url should be this 网站的链接是this ,测试网址应该是this

This is defiantly a URI issue, Please try switching $config['uri_protocol'] 这绝对是URI问题,请尝试切换$config['uri_protocol']

from AUTO to any of the available modes until you get it fixed. 从自动切换到任何可用模式,直到您将其修复。

If you need a fast fix for this, just add ? 如果您需要快速解决方案,只需添加? for your index.php urls so it will be like this 为您的index.php URL,所以它将像这样

index.php?/locations/get 

but fixing this through the 'uri_protocol' thing is better. 但是通过“ uri_protocol”解决这个问题会更好。

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

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