Ruby on rails Heroku:应用程序中出现错误,无法提供您的页面。请稍后再试

Ruby on rails Heroku:应用程序中出现错误,无法提供您的页面。请稍后再试,ruby-on-rails,heroku,Ruby On Rails,Heroku,我正在读M.Hartle的RubyonRails教程的第8章。在本地生产中,所有的防护测试都可以正常工作,所有页面都可以完美工作。但是,在按下heroku(通过bitbucket)后,我得到了以下信息: 应用程序中出现错误,无法提供您的页面。请稍后再试 如果您是应用程序的所有者,请查看日志以了解详细信息。我认为您需要一个名为test\u helper的文件,该文件不存在,或者要求不正确。你能试着找到它,然后把它贴在这里吗?嗨,杰克,非常感谢!它确实在测试目录中。这里是:NV['RAILS_ENV

我正在读M.Hartle的RubyonRails教程的第8章。在本地生产中,所有的防护测试都可以正常工作,所有页面都可以完美工作。但是,在按下heroku(通过bitbucket)后,我得到了以下信息:

应用程序中出现错误,无法提供您的页面。请稍后再试


如果您是应用程序的所有者,请查看日志以了解详细信息。我认为您需要一个名为
test\u helper
的文件,该文件不存在,或者要求不正确。你能试着找到它,然后把它贴在这里吗?嗨,杰克,非常感谢!它确实在测试目录中。这里是:NV['RAILS_ENV']| |='test'需要文件。展开_path('../../config/environment',文件)需要'RAILS/test_help'需要“minitest/reporters”minitest::reporters.use!类ActiveSupport::TestCase fixtures:all include ApplicationHelper#如果测试用户登录,则返回true。def是否已登录!会话[:用户标识].nil?结束#登录测试用户。def log_in_as(user,options={})password=options[:password]| |“password”memory|me=options[:memory|me]| |“1”if integration|u test?post login_path,会话:{email:user.email,password:password,membered_me:membered_me}else会话[:user_id]=user.id end-end-private#在集成测试中返回true。def集成测试?已定义?(post_via_redirect)end endCool,因此
test_helper.rb
文件存在——这很好。我的另一半评论是,我认为您在其他地方需要该文件,如:
require'test\u helper'
。您是否尝试过搜索该文件,或者只是
require
?我认为您需要一个名为
test\u helper
的文件,该文件要么不存在,要么不是正确需要的。你能试着找到它,然后把它贴在这里吗?嗨,杰克,非常感谢!它确实在测试目录中。这里是:NV['RAILS_ENV']| |='test'需要文件。展开_path('../../config/environment',文件)需要'RAILS/test_help'需要“minitest/reporters”minitest::reporters.use!类ActiveSupport::TestCase fixtures:all include ApplicationHelper#如果测试用户登录,则返回true。def是否已登录!会话[:用户标识].nil?结束#登录测试用户。def log_in_as(user,options={})password=options[:password]| |“password”memory|me=options[:memory|me]| |“1”if integration|u test?post login_path,会话:{email:user.email,password:password,membered_me:membered_me}else会话[:user_id]=user.id end-end-private#在集成测试中返回true。def集成测试?已定义?(post_via_redirect)end endCool,因此
test_helper.rb
文件存在——这很好。我的另一半评论是,我认为您在其他地方需要该文件,如:
require'test\u helper'
。您是否尝试过搜索它,或者只是
需要