On 8 December 2010 21:25, Colin Law <[email protected]> wrote:
> I am using Rails 3.0.3, Ruby 1.9.2 with rvm on Ubunutu 10.04.  I
> generated a new app by rails new testunicorn.  By default the Webrick
> server runs ok.  In order to try Unicorn I uncommented gem 'unicorn'
> in Gemfile and did bundle install.  rails server still runs webrick
> and doing rails server unicorn leads to
>
> col...@piglet:~/websites/testunicorn$ rails s unicorn
> Exiting
> /home/colinl/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/handler.rb:21:in
> `const_get': wrong constant name unicorn (NameError)
>        from 
> /home/colinl/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/handler.rb:21:in
> `get'
>        from 
> /home/colinl/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/server.rb:217:in
> `server'
>        from 
> /home/colinl/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.3/lib/rails/commands/server.rb:54:in
> `start'
>        from 
> /home/colinl/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.3/lib/rails/commands.rb:30:in
> `block in <top (required)>'
>        from 
> /home/colinl/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.3/lib/rails/commands.rb:27:in
> `tap'
>        from 
> /home/colinl/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.3/lib/rails/commands.rb:27:in
> `<top (required)>'
>        from script/rails:6:in `require'
>        from script/rails:6:in `<main>'

OK, I worked it out.  Just run
unicorn
and note that it defaults to port 8080 rather than the 3000 we all
know and love.

Colin

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to