相关疑难解决方法(0)

铁路环境mongoid连接问题

我有rails app 3.2.17,部署在登台环境中,独角兽4.6.3由bluepill 0.0.66使用mongid 3.1.5监控

当我为staging环境进行部署时,所有工作都会找到包括active_record在内的mongoid查询,其结果包含以下错误:

Error during failsafe response: 
Problem:
  No configuration could be found for a session named 'default'.
Summary:
  When attempting to create the new session, Mongoid could not find a session configuration for the name: 'default'. This is necessary in order to know the host, port, and options needed to connect.
Resolution:
  Double check your mongoid.yml to make sure under the sessions key that a configuration exists for 'default'. If you have set the …
Run Code Online (Sandbox Code Playgroud)

deployment ruby-on-rails mongodb unicorn mongoid

4
推荐指数
1
解决办法
3959
查看次数

标签 统计

deployment ×1

mongodb ×1

mongoid ×1

ruby-on-rails ×1

unicorn ×1