我已将我的 Rails 应用程序升级到 3.2.8 和 Mongoid 3/Moped。在开发中一切正常,在我的开发机器上同时设置为生产,并且rails c
在我的生产设置上也可以正常工作。但是,该应用程序没有启动(部署在乘客身上)并且似乎只是超时,没有产生任何错误。我将 log_level 设置为在生产中调试,这就是我所看到的:
Creating scope :near. Overwriting existing method City.near.
MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (5.8458ms)
MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (8.2316ms)
MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (16.2363ms)
MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (13.0076ms)
MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.5557ms)
MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.5068ms)
MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.5004ms)
MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.7371ms)
MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.7002ms)
MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (2.8868ms)
MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.8172ms)
MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (3.0932ms)
MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (10.4055ms)
MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.5655ms)
MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.4858ms)
MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.6346ms)
MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.4541ms)
MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.5333ms)
MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.8239ms)
MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.5938ms)
MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.4448ms)
MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.4253ms)
MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (9.8593ms)
# ... this just carries on indefinitely.
我该如何解决?(作为记录,我尝试使用的数据库不称为 admin。)
谢谢,
阿维沙