This project is archived and is in readonly mode.

#6292 ✓stale
y_feldblum (at yahoo)

`rails server unicorn`

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

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.

Comments and changes to this ticket

  • Jesse Storimer

    Jesse Storimer January 18th, 2011 @ 04:59 PM

    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).

  • rails

    rails April 19th, 2011 @ 01:00 AM

    • 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.

  • rails

    rails April 19th, 2011 @ 01:00 AM

    • State changed from “open” to “stale”

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Pages