Can't Use SQLITE3 as Rails Server

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: intry_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: inserver’
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:inblock 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

Any help would be greatly appreciated.

Cheers,
Gabe

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.