Hi all,

Need some help with setting my rails server as sqlite3. I'm currently
following the 2nd exercise in the book 'Pragmatic Agile Web
Development with Rails 4th Edition'. The sample apps are all ran using
the sqlite3 server but can't seem to start it when I run the command
'rails server sqlite3' on the command line. This is the error I get:

C:/Ruby/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/handler.rb:63:in
`require':
cannot load such file -- rack/handler/sqlite3 (LoadError)
from C:/Ruby/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/
handler.rb:63:
in `try_require'
from C:/Ruby/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/
handler.rb:16:
in `get'
from C:/Ruby/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/
server.rb:269:
in `server'
from C:/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/
commands/
server.rb:59:in `start'
from C:/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/
commands.
rb:55:in `block in <top (required)>'
from C:/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/
commands.
rb:50:in `tap'
from C:/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/
commands.
rb:50:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'

Any help would be greatly appreciated.

Cheers,
Gabe

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Search Discussions

  • Jsnark at Mar 7, 2012 at 2:06 pm
    That's because sqlite3 is a database server and not a web server.

    $ rails server

    starts the default web server, WEBrick. Mongrel and thin are some
    common alternatives.
    On Mar 5, 1:25 am, Gjaldon wrote:
    Hi all,

    Need some help with setting my rails server as sqlite3. I'm currently
    following the 2nd exercise in the book 'Pragmatic Agile Web
    Development with Rails 4th Edition'. The sample apps are all ran using
    the sqlite3 server but can't seem to start it when I run the command
    'rails server sqlite3' on the command line. This is the error I get:

    C:/Ruby/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/handler.rb:63:in
    `require':
    cannot load such file -- rack/handler/sqlite3 (LoadError)
    from C:/Ruby/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/
    handler.rb:63:
    in `try_require'
    from C:/Ruby/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/
    handler.rb:16:
    in `get'
    from C:/Ruby/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/
    server.rb:269:
    in `server'
    from C:/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/
    commands/
    server.rb:59:in `start'
    from C:/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/
    commands.
    rb:55:in `block in <top (required)>'
    from C:/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/
    commands.
    rb:50:in `tap'
    from C:/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/
    commands.
    rb:50:in `<top (required)>'
    from script/rails:6:in `require'
    from script/rails:6:in `<main>'

    Any help would be greatly appreciated.

    Cheers,
    Gabe
    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedMar 6, '12 at 5:34p
activeMar 7, '12 at 2:06p
posts2
users2
websiterubyonrails.org
irc#RubyOnRails

2 users in discussion

Jsnark: 1 post Gjaldon: 1 post

People

Translate

site design / logo © 2022 Grokbase