[LRUG] AJAX file uploads and content types

Andrew Stewart boss at airbladesoftware.com
Thu Apr 5 04:30:12 PDT 2012

On 5 Apr 2012, at 12:15, Richard Taylor wrote:
> Unicorn not picking up a new bundled gem rings a bell.  I have the following in my unicorn.rb config file to combat this:
> before_exec do |server|
>   ENV["BUNDLE_GEMFILE"] = "#{app_root}/current/Gemfile"
> end
> Basically, on graceful restart something is keeping a reference to the expanded path of the old gemfile (not via the symbolic link) so you need to make sure bundler knows it should use the new Gemfile in the new release folder.

Hi Richard,

Thank you -- that's extremely useful!  (And good to hear I wasn't going mad...)


More information about the Chat mailing list