Unicorn restart/upgrade doesn't work

后端 未结 4 462
难免孤独
难免孤独 2021-02-04 12:28

Following is link to my init script for unicorn. https://gist.github.com/1466775

Restart command has never worked for me. I am using upgrade to restart unicorn after eac

4条回答
  •  天涯浪人
    2021-02-04 12:54

    I had a very similar problem and finally found the solution

    I had looked through the logs before but obviously failed to see the (Bundler::GemfileNotFound) error. Turns out there are old references to earlier releases and once the gem file changes, the new master silently fails. Tail -f your unicorn log to see what happens. My issues were all fixed as per the link with the following in my unicorn.rb

     before_exec do |server|
        ENV['BUNDLE_GEMFILE'] = "#{root}/Gemfile"
     end 
    

提交回复
热议问题