Hi,
I added to my ruby program the following lines and got app crashes -
error :
Connecting to
mysql://app380704:[email protected]:5330/app380704
/disk1/home/slugs/380704_8c81884_4565-de14c7d1-4de7-4d78-
bf76-3321dfadd4fc/mnt/.bundle/gems/ruby/1.8/gems/sequel-3.18.0/lib/
sequel/adapters/mysql.rb:4:in `require': LoadError: no such file to
load -- mysql (Sequel::AdapterNotFound)
Code:
url = ENV['DATABASE_URL']
puts "Connecting to #{url}"
db = Sequel.connect(url)
db.tables
puts "This database has the following tables: #{db.tables.inspect}"
db.disconnect
url = ENV['DATABASE_FAILOVER_URL']
puts "Connecting to #{url} to test the failover URL"
db = Sequel.connect(url)
db.tables
puts "The failover URL is also valid"
db.create_table :items do
primary_key :id
String :name
Float :price
end
--
You received this message because you are subscribed to the Google Groups
"Heroku" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/heroku?hl=en.