On 8 December 2010 21:25, Colin Law
<clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
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
>
> colinl@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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.