On Thu, Jun 12, 2008 at 8:45 PM, frogstarr78 <frogstarr78@gmail.com>
wrote:>
> config.active_record.configure do |db|
> db.database = ''test_app_production''
> db.socket = IO.popen("mysql --help") {|f| f.read() =~
/^socket(.+)
> $/ && $1.strip }
> db.credentials = "#{ENV["home"]}/.my.cnf"
> end
>
> Good idea or not, I''m just throwing it out there. Not that you
> couldn''t have done this in yml but...
db.socket = `mysql_config --socket`.strip even :)
jeremy
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---