Closed ghost closed 12 years ago
I don't think using Unicorn as the web server in Production would make a difference over your development setup. I would ensure your deployment is doing a bundle install, and using bundle exec when starting Unicorn.
The issue is that the gem is not being loaded for you as it should be before trying to initialize Rails.
You are right that the gem is not loaded, even though I had run bundle install and restarted unicorn. The problem is with unicorn that requires to be restarted with:
/etc/init.d/unicorn_epub stop
/etc/init.d/unicorn_epub start
Doing this forces unicorn to load the gem; the standard capistrano restart does not do it...
I found today another issue that looked similar (https://github.com/ryanb/cancan/issues/674) and verified that it works.
Thanks for taking the time.
Glad you worked it out. Let me know if you run into any other issues.
Version: 0.4.0 beta
Trace follows