[vlad] How to install will_paginate on the server?

I successfully installed will_paginate on my workstation and ist works
fine.

Now I want to deploy the new version via vlad to my server. I’ve
sucessfully run

gem install will_paginate

as root.

Any attempt to run

rake gems:install

from the server root folder fails with:

rake gems:install
rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb,
Rakefile.rb)
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2377:in
`raw_load_rakefile’
(See full trace by running task with --trace)

Running

rake vlad:update vlad:migrate vlad:start

fails with these messages:

Missing these required gems:
mislav-will_paginate ~> 2.3.2

You’re running:
ruby 1.8.6.111 at /usr/bin/ruby1.8
rubygems 1.3.5 at /home/inet/.gem/ruby/1.8, /usr/lib/ruby/gems/1.8

Run rake gems:install to install the missing gems.
(in /home/inet/oag-server/releases/20100315163708)
rake aborted!
execution failed with status 1: ssh oag-server cd
/home/inet/oag-server/releases/20100315163708; rake RAILS_ENV=production
db:migrate

What is going wrong? Why doesn’t vlad find will_paginate?

Ok, I got it.

After running vlad, I logged into the server and cd’ed int the current
folder of my application. Then run ‘rake gems:install’ - will_paginate
gets installed.

Then rerun vlad and it succeeds.

This is a really odd installation procedure…

Isn’t it easier to use will_paginate as a rails plugin?

Just asking.

Fernando P. wrote:

Isn’t it easier to use will_paginate as a rails plugin?

Just asking.

Is it possible? There is no notice on installing as plugin in the docs.