I have a rails 2.3.8 application running on heroku, but I have problems setting up mongoid 1.9.2 with MongoHQ. Has anyone done this job?
Thank!
To connect to the database, you must use a variable MONGODB_URL.
MONGODB_URL
# set these environment variables on your prod server production: <<: *defaults uri: <%= ENV['MONGOHQ_URL'] %>
Also, make sure the property is hostnot set to defaultsnode. strong text
host
defaults
defaults: &defaults # slaves: # - host: slave1.local # port: 27018 # - host: slave2.local # port: 27019
Source: https://habr.com/ru/post/1776147/More articles:When you automatically create subdomains when registering users, does it create a new website or gives the appearance of the website? - phpWhen serializing the XML type for text, PostgreSQL does not include the XML declaration if it is not? - xmlHow can I make MinGW case sensitive for included header file names - c ++Is there a reason why I should be discouraged from using an alternative template in my Django application? - pythonMysql Query Perplexed Me - phpIs there a way to omit a variable from a superclass? - javaYou need to use a random number generator in the form of an object type type, but you do not need the burden of its dependence - javaClojure: finding the minimum value in vectors vectors - clojureПроблемы с файлами с памятью с отцовскими и дочерними процессами - cHow to convert json array to flex 4 (as3) array? - jsonAll Articles