We have a host list in the environment on Heroku w/ MongoHQ and the 2.x mongoid.yml looked like this:
production:
<<: *defaults
<% if ENV['MONGOHQ_HOST_LIST'] %>
hosts: <%= ENV['MONGOHQ_HOST_LIST'] %>
read_secondary: <%= !$rails_rake_task %>
database: <%= ENV['MONGOHQ_DATABASE'] %>
username: <%= ENV['MONGOHQ_USER'] %>
password: <%= ENV['MONGOHQ_PASSWD'] %>
<% else %>
uri: <%= ENV['MONGOHQ_URL'] || '' %>
<% end %>
How do I translate the list of hosts with the new format? I'd like to avoid hard-coding it.
--
dB. | Moscow - Geneva - Seattle - New York
dblock.org - @dblockdotorg