Sorry about the multiple posts...

The problem was that Capistrano was using the standard Ruby on the
server, instead of REE.

To correct this, I added in my deploy.rb:

set :default_environment, {
  'PATH' => "/opt/ruby-enterprise-1.8.7-2011.03/bin:$PATH"
}


Cheers

Cyrille

On Jul 14, 11:12 am, Cyrille <[email protected]> wrote:
> Hi Gordon,
>
> thanks for getting back to me on this. Your problem is definitely
> different from mine (it looks like you have a compatibility problem
> between Bundler and Whenever). On my config, Whenever works fine,
> locally and on the server.
>
> My only problem is when I run Whenever via Capistrano.
>
> I've made some progress though, and I thought I'll share it here. I
> added a couple of commands in Capistrano:
>
>     run "cd #{release_path} && gem -v"
>     run "cd #{release_path} && bundle exec gem -v"
>
> These commands both return: 1.7.2
>
> When I run it manually on the server, I get: 1.5.2
>
> And locally (for the record): 1.5.3
>
> So, Capistrano somehow uses a different (more advanced) version of
> RubyGems!!
>
> Now I'll hunt down where this RubyGems are coming from... If someone
> has a suggestion...
>
> Cheers
>
> Cyrille
>
> On Jul 14, 4:08 am, Gordon Anderson <[email protected]>
> wrote:
>
>
>
>
>
>
>
> > hi Cyrille
>
> > Apologies for not getting back to you earlier on this.
>
> > The issue I get with enabling the whenever gem is this (on my development
> > box):
>
> > /usr/lib/ruby/gems/1.8/gems/bundler-1.0.10/lib/bundler/runtime.rb:68:in
> > `require': can't convert Symbol into String (TypeError)
> >  from
> > /usr/lib/ruby/gems/1.8/gems/bundler-1.0.10/lib/bundler/runtime.rb:68:in
> > `require'
> >  <snip>
>
> > It looks like I simply ran
>
> >     whenever --update-crontab <appname>
>
> > to update my local crontab and then manually applied that on the public
> > server by copying and editing the content of crontab -l.  I then edited the
> > Gemfile to comment out whenever so the server would actually run.
>
> >  Doing this with capistrano would make more sense though, hadn't even
> > crossed my mind :)
>
> >http://asciicasts.com/episodes/164-cron-in-ruby
>
> > Regards
>
> > Gordon

-- 
You received this message because you are subscribed to the Google Groups 
"WellRailed" 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/wellrailed?hl=en.

Reply via email to