[LRUG] AJAX file uploads and content types

Andrew Stewart boss at airbladesoftware.com
Thu Apr 5 04:47:41 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.

In fact Googling about this led me to the Sandbox page -- which I hadn't read before -- on Unicorn's site where it mentions that very snippet, somewhat non-commitally.

Anyway, thanks again for the solution,

Andy


More information about the Chat mailing list