简体   繁体   English

Phusion Passenger在未使用Phusion Passenger的项目中引发错误

[英]Phusion Passenger is raising an error in a project that doesn't use Phusion Passenger

I am running RSpec integration tests with JavaScript enabled on my rails project and am receiving the following error after using the capybara method visit to go to my sign in page: 我正在Rails项目中启用了JavaScript的情况下运行RSpec集成测试,并且在使用capybara方法visit进入我的登录页面后,收到以下错误:

We're sorry, but something went wrong. We've been notified about this issue and we'll take a look at it shortly. Information for the administrator of this website: The Phusion Passenger application server encountered an error while starting your web application. Because you are running this web application in staging or production mode, the details of the error have been omitted from this web page for security reasons. Please read https://www.phusionpassenger.com/library/admin/log_file/ to find the details of the error.

(Note that the previous error message is what appears in the HTML of the page after running print page.body , but I removed the HTML tags for ease of reading) (请注意,先前的错误消息是运行print page.body之后页面的HTML中显示的print page.body ,但是为了便于阅读,我删除了HTML标签)

The strangest thing is that we are not using Phusion Passenger in our project (this been confirmed with the project leader). 最奇怪的是,我们没有在项目中使用Phusion Passenger(已得到项目负责人的确认)。 Accordingly, there is no passenger gem in the Gemfile and running passenger stop returns: passenger: command not found 因此,Gemfile中没有旅客宝石,并且正在运行的passenger stop返回:password passenger: command not found

Any guesses on how this could be? 关于这可能有什么猜测吗?

My configuration 我的配置

  • using capybara and capybara WebKit 使用capybara和capybara WebKit
  • my other RSpec tests using capybara work fine, when :js => false :js => false时,我使用水豚的其他RSpec测试工作正常

The port that I was connecting to when visit ing the sign in page was incorrect, and that somehow connected me to Phusion Passenger. visit登录页面时我连接的端口不正确,并且以某种方式将我连接到Phusion Passenger。

Credit goes to Thomas Walpole for his help in the comments. 感谢Thomas Walpole在评论中的帮助。

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

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