Hello, ¿I would like to know if there is any plans in the future to allow specifying a path for the database.yml? I have several apps that share a db and i think is a little redundant to have to copy the database.yml to each, also the file is out of my repo and i dont like the idea of using a symlink. It would be better if i could just specify the path in the application.rb. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
It strikes me that a symlink is the appropriate solution to this problem. You''d be doing it anyway with a standard Capistrano deployment. Regards, Ben Langfeld On Sat, Oct 1, 2011 at 4:14 PM, radhames brito <rbritom@gmail.com> wrote:> Hello, ¿I would like to know if there is any plans in the future to > allow specifying a path for the database.yml? I have several apps that > share a db and i think is a little redundant to have to copy the > database.yml to each, also the file is out of my repo and i dont like the > idea of using a symlink. It would be better if i could just specify the path > in the application.rb. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Core" group. > To post to this group, send email to rubyonrails-core@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-core+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-core?hl=en. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
This is what works for us: config.database = ENV[''DATABASE_YML''] # rails 3.0.x config.paths[''config/database''] = ENV[''DATABASE_YML''] # rails 3.1 - Ketan studios.thoughtworks.com | twitter.com/ketanpkr On Sat, Oct 1, 2011 at 8:14 AM, radhames brito <rbritom@gmail.com> wrote:> Hello, ¿I would like to know if there is any plans in the future to > allow specifying a path for the database.yml? I have several apps that > share a db and i think is a little redundant to have to copy the > database.yml to each, also the file is out of my repo and i dont like the > idea of using a symlink. It would be better if i could just specify the path > in the application.rb. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Core" group. > To post to this group, send email to rubyonrails-core@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-core+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-core?hl=en. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.