Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6388057
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T03:13:52+00:00 2026-05-25T03:13:52+00:00

I installed the mongrel gem because I need it on my workstation for rare

  • 0

I installed the mongrel gem because I need it on my workstation for rare occasions, and now it’s my default Rails (2) server. I know I could specify script/server webrick on the command line, but the fact is that I’d like to have my system (or app) default to webrick, and only use mongrel when specified.

Anybody know how to arrange that?

Specs: WinXP, Rails 2.3.12, Ruby 1.8.7

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T03:13:53+00:00Added an answer on May 25, 2026 at 3:13 am

    Ok here are a few options:

    Option one – One off: Always add webrick as a command line arg

    Open script/server and insert a line between the two requires

    #!/usr/bin/env ruby
    require File.expand_path('../../config/boot',  __FILE__)
    ARGV.unshift "webrick"
    require 'commands/server'
    

    Option two – Global: Edit the commands/server.rb file that launches rails

    gem which railties -> tells you where the startup code is
    Open the file at lib/commands/server.rb

    Around line 45 edit the logic so that webrick is always launched by default.

    server = Rack::Handler.get(ARGV.first) rescue nil
    unless server
      begin
        server = Rack::Handler::WEBrick # was Mongrel
      rescue LoadError => e
        server = Rack::Handler::WEBrick
      end
    end
    

    Option 3 – Cleanest but most involved:

    Switch to Bundler and manage your dependencies directly. This is more work but positions you for switching to rails 3 at some point which might be nice depending on the life cycle of the application.
    There’s a tutorial for rails 2.3 here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Rails app installed on a Slicehost server running Apache 2 and
I installed VS 2010 on a plain Vista x64 OS, now I need to
I have server (centOS 5.5) and WHM installed. I installed manually Ruby 1.9.2, Rails
Installed rubyinstaller-1.8.7-p358.exe, then tried to install jammit , but the config.gem command isn't being
I installed WSS Infrastructure Update and MOSS Infrastructure Update ( http://technet.microsoft.com/en-us/office/sharepointserver/bb735839.aspx ) and now
I installed Visual Studio 2005 ( with SP1 ) and made the default settings
I'm working on a very limited environment and need a ruby (based) web server;
i'm trying to get working an old rails 2.1 application configured with mongrel cluster.
Installed SlikSvn on Window 2008 server Created Repository at c:\dia\svn\repos running this windows service
Installed a captcha on my blog, been good up until now. There have recently

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.