Forum: Ruby on Rails Problems with railsbench - "benchmarking database is not con

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
A1a22fbcc528100593e2600f7eaa0ac6?d=identicon&s=25 IsBOF (Guest)
on 2007-01-24 14:43
(Received via mailing list)
Anyone have any experience with Railsbench?

I have some problems getting it to run on our build server (it runs
fine on my development machine).

I have installed the latest gem and when I try to running it on our
build server it raises the following error:

/usr/home/app/sources/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_spec
ification.rb:194:in `establish_connection': benchmarking database is
not configured (ActiveRecord::AdapterNotSpecified)
        from
/usr/home/app/sources/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/co
nnection_specification.rb:185:in `establish_connection'
        from
/usr/home/app/sources/config/../vendor/rails/railties/lib/initializer.rb:182:in
`initialize_database'
        from
/usr/home/app/sources/config/../vendor/rails/railties/lib/initializer.rb:84:in
`process'
        from
/usr/home/app/sources/config/../vendor/rails/railties/lib/initializer.rb:42:in
`send'
        from
/usr/home/app/sources/config/../vendor/rails/railties/lib/initializer.rb:42:in
`run'
        from /usr/home/app/sources/config/environment.rb:16
        from
/usr/local/lib/ruby/gems/1.8/gems/railsbench-0.9.1/lib/railsbench/railsbenchmark.rb:41:in
`require'
        from
/usr/local/lib/ruby/gems/1.8/gems/railsbench-0.9.1/lib/railsbench/railsbenchmark.rb:41:in
`initialize'
         ... 6 levels...
        from
/usr/local/lib/ruby/gems/1.8/gems/railsbench-0.9.1/script/perf_bench:25
        from
/usr/local/lib/ruby/gems/1.8/gems/railsbench-0.9.1/lib/benchmark.rb:182:in
`benchmark'
        from
/usr/local/lib/ruby/gems/1.8/gems/railsbench-0.9.1/lib/benchmark.rb:212:in
`bm'
        from
/usr/local/lib/ruby/gems/1.8/gems/railsbench-0.9.1/script/perf_bench:24
perf_run: ruby
/usr/local/lib/ruby/gems/1.8/gems/railsbench-0.9.1/script/perf_bench
100  returned 256

I have done some testing with both ruby script/runner
"some class" and rcov. Both runs with no problems, they can see the
database fine.

Rasmus
A1a22fbcc528100593e2600f7eaa0ac6?d=identicon&s=25 IsBOF (Guest)
on 2007-01-24 23:16
(Received via mailing list)
Okay, found the problem, remember to include a special benchmarking
entry in the database.yml file.

Rasmus
This topic is locked and can not be replied to.