Skip to content

ref - Application template role in Production install #3 #6

@telezoic

Description

@telezoic

Thanks for looking into this @ostigley! [issue#3]

I have pulled the master, and run this again.

Barring one error, the template runs smoothly. The error is as follows

Seeding API data
   force    db/seeds.rb
    rake    db:seed --trace
** Invoke db:seed (first_time)
** Execute db:seed
** Invoke db:abort_if_pending_migrations (first_time)
** Invoke environment (first_time)
** Execute environment
** Invoke db:load_config (first_time)
** Execute db:load_config
** Execute db:abort_if_pending_migrations
rake aborted!
`Mongo::Error::NoServerAvailable: No server is available matching preference:     #<Mongo::ServerSelector::Primary:0x47014960171880 tag_sets=[] max_staleness=nil> using server_selection_timeout=30 and local_threshold=0.015`

I can confirm that mongo is running:

[bcdluser@eln-sj1 config]$ mongo
MongoDB shell version v3.4.7
connecting to: mongodb://127.0.0.1:27017
MongoDB server version: 3.4.7

I thought I might try and explicitly declare the mongoid host in supplejack_api/spec/dummy/config/mongoid.yml, to no avail

development:
clients:
default:
  database: supplejack_api_development
  hosts:
    #<%= ENV['MONGOID_HOSTS'].gsub(/\s+/, "").split(',') %>
- 127.0.0.1:27017`

strong:
  database: supplejack_api_development
  hosts:
    #<%= ENV['MONGOID_HOSTS'].gsub(/\s+/, "").split(',') %>
- 127.0.0.1:27017`

I'm wondering if you have any suggestions about how to get around this . . .

Thanks,
D.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions