各位 Ruby 的先進您們好, 我是來自台灣的 ROR 新手在安裝 Ruby China 的時候遇到這個問題,
已經試著自己解決了但還是解決不了,想請問各位大大怎麼辦?
好不容易安裝到目前的進度, 但還是出現這個問題,請問各位大大能幫我解答該怎麼做嗎?
運行環境 MBP 用 rbenv ruby 2.2.4p230 (2015-12-16 revision 53155) [x86_64-darwin15] Rails 4.2.5
Seed default data...rake aborted!
Mongo::Error::NoServerAvailable: No server is available matching preference: #<Mongo::ServerSelector::Primary:0x007fc8aae1aa08 @options={"database"=>:ruby_china_dev}, @tag_sets=[], @server_selection_timeout=30>
/Users/LinCZ/ruby-china/app/models/site_config.rb:44:in `find_by_key'
/Users/LinCZ/ruby-china/app/models/site_config.rb:48:in `save_default'
/Users/LinCZ/ruby-china/db/seeds.rb:6:in `<top (required)>'
Tasks: TOP => db:seed
(See full trace by running task with --trace)