使用'http'而不是'https'在heroku上运行应用

sha*_*eet 5 heroku ruby-on-rails-3

我已经将Michael Hartl的教程代码的演示应用程序部署到了heroku上,看它是否正常工作.该应用程序将在https://some-app-name.herokuapp.com中打开.如何让它在http而不是https中打开?

小智 5

有同样的问题.您必须更改应用的ssl设置.

environments/production.rb必须有以下配置config.force_ssl = false,其默认设置为true.

不得不重置Firefox才能生效.其他浏览器都可以.