pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

redmine: bundle exec in rc.d script?



Hi,

I have the following message in unicorn.log:
/Users/triaxx/pkg/lib/ruby/3.1.0/bundler/runtime.rb:308:in `check_for_activated_spec!': You have already activated rack 3.0.7, but your Gemfile requires rack 2.2.6.4. Prepending `bundle exec` to your command may solve this. (Gem::LoadError)

A lot of stack trace are periodically produced in unicorn.log. I can fix the issue by applying the recommandation of the previous message:
redmine50_unicorn_start()
{
  cd /Users/triaxx/pkg/share/ruby31-redmine50
  /Users/triaxx/pkg/bin/bundle31 exec /Users/triaxx/pkg/bin/unicorn31 \
    -c /Users/triaxx/pkg/share/ruby31-redmine50/config/unicorn.rb \
    -E production -D
}

What about this fix? I don't know Ruby...


Home | Main Index | Thread Index | Old Index