Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

`rails server unicorn`

#6292

Unicorn is a new Rack-aware Web server / application container.

We can run Rails on Unicorn in development mode via invoking the unicorn or unicorn -p 3000 command (or unicorn_rails and unicorn_rails -p 3000).

But rails server #{server} has some extra sauce that adds Rack middleware that tails log/development.log to stdout. This is missing when invoking unicorn directly.

Please add unicorn to the list of Web servers recognized by Rails in the rails server #{server} command such that rails server unicorn launches the Rails application in development mode on port 3000, with log/development.log tailed to stdout.

Reported by y_feldblum (at yahoo) · January 15th, 2011 @ 05:26 PM

State: stale
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Jesse Storimer
    Jesse Storimer

    This isn't something that Rails maintains. When you run rails server mongrel, or rails server thin it's Rack that handles the server argument.

    Rack ships with handlers for mongrel, thin, Webrick, and a few others. Other servers (like Unicorn) include Rack handlers in their own codebase. But like you said Unicorn's handler doesn't set the same options that rails does by default. But I don't think you'll see this added to Rails.

    I wrote a simple gem just for this use case (https://github.com/jstorimer/hooves).

    January 18th, 2011 @ 04:59 PM

  2. rails
    rails
    • State changed from new to open

    This issue has been automatically marked as stale because it has not been commented on for at least three months.

    The resources of the Rails core team are limited, and so we are asking for your help. If you can still reproduce this error on the 3-0-stable branch or on master, please reply with all of the information you have about it and add "[state:open]" to your comment. This will reopen the ticket for review. Likewise, if you feel that this is a very important feature for Rails to include, please reply with your explanation so we can consider it.

    Thank you for all your contributions, and we hope you will understand this step to focus our efforts where they are most helpful.

    April 19th, 2011 @ 01:00 AM

  3. rails
    rails
    • State changed from open to stale

    April 19th, 2011 @ 01:00 AM