[Mongrel] Getting Started without Rails

Eden Li eden at mojiti.com
Wed Mar 14 08:08:18 EDT 2007

You probably don't want to use 'mongrel_rails' if you don't want to use rails.

Instead, you should probably write some handlers and write a
configurator script that brings them all together.  The docs on both
are located at http://mongrel.rubyforge.org/rdoc/index.html.

An example is included with mongrel:


On 3/14/07, Michel Vaillancourt <michel at wolfstar.ca> wrote:
>         Hi, everyone.  I am in the process of learning Ruby.  I've concluded that there are couple of quirks with mod_ruby that are limiting me a fair bit, so I'm looking for an alternative.  From what I've read, Mongrel is The Answer.  However, this has left me with a few questions.
>         I'm looking for some help getting a non-rails Mongrel started...  I can't seem to find the docs I need in my web searching...  specifically need something that explains what files Mongrel expects to see where for a non-rails app to work.  Everything I have found is written on the premise of Mongrel with Rails (eg, http://mongrel.rubyforge.org/rdoc/index.html).
> ext2:/home/www/ruby/cosmogenesis# mongrel_rails start
> ** Starting Mongrel listening at
> ** Starting Rails with development environment...
> /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require': no such file to load -- /home/www/ruby/cosmogenesis/config/environment (LoadError)
>         from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
>         from /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:155:in `rails'
>         from /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:112:in `cloaker_'
>         from /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:138:in `call'
>         from /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:138:in `listener'
>         from /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:98:in `cloaker_'
>         from /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:51:in `call'
>         from /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:51:in `initialize'
>         from /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:83:in `new'
>         from /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:83:in `run'
>         from /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/command.rb:211:in `run'
>         from /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:243
>         from /usr/bin/mongrel_rails:16:in `load'
>         from /usr/bin/mongrel_rails:16
>         ... its pretty obvious that Mongrel is expecting to find some key files with Important Stuff in them, but I can't seem to find info on where/what.  Can someone point me at a how-to or docs that explain what files are needed with what contents?
>         Thanks in advance for any and all help.
>         --Michel
> _______________________________________________
> Mongrel-users mailing list
> Mongrel-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/mongrel-users

More information about the Mongrel-users mailing list