Ruby on rails 为什么在我推送代码后会出现Heroku欢迎屏幕?

Ruby on rails 为什么在我推送代码后会出现Heroku欢迎屏幕?,ruby-on-rails,ruby,git,heroku,web-deployment,Ruby On Rails,Ruby,Git,Heroku,Web Deployment,我正在使用Michael Hartl学习Ruby on Rails,在第一章中,我遇到了一个问题,当时我正试图使用Heroku部署我的Hello World应用程序。尽管我已经使用git将代码推送到Heroku,并且我的项目在localhost上运行良好,但我仍然会得到默认的欢迎屏幕 我的路由文件设置如下: Rails.application.routes.draw do root 'application#hello' end class ApplicationController

我正在使用Michael Hartl学习Ruby on Rails,在第一章中,我遇到了一个问题,当时我正试图使用Heroku部署我的Hello World应用程序。尽管我已经使用git将代码推送到Heroku,并且我的项目在localhost上运行良好,但我仍然会得到默认的欢迎屏幕

我的路由文件设置如下:

Rails.application.routes.draw do
    root 'application#hello'
end
class ApplicationController < ActionController::Base
    protect_from_forgery with: :exception

    def hello
        render html: "¡Hola, mundo!"
    end

end
我的控制器是这样的:

Rails.application.routes.draw do
    root 'application#hello'
end
class ApplicationController < ActionController::Base
    protect_from_forgery with: :exception

    def hello
        render html: "¡Hola, mundo!"
    end

end

git中的所有内容都是最新的,我不知道还有什么可以尝试。有什么想法吗?谢谢。

尝试以下命令:

git添加。 git提交-m fc git推送heroku主机
我发现我不小心将SQlite3留在了Heroku不支持的GEM文件中。

日志中有任何条目吗?与heroku Logst一起阅读。如果你能解释一下它为什么有效,那么这个答案会更有帮助。