Unicorn restart/upgrade doesn't work

后端 未结 4 419
难免孤独
难免孤独 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 13:05

    I fixed this issue by changing my unicorn init.d script from

    CMD="cd $APP_ROOT; bundle exec unicorn -D -c $APP_ROOT/config/unicorn.rb -E staging"
    

    to this:

    CMD="cd $APP_ROOT; BUNDLE_GEMFILE=$APP_ROOT/Gemfile bundle exec unicorn -D -c $APP_ROOT/config/unicorn.rb -E staging"
    

    Which seems to point to the new bundle gemfile on every new release. Taking inspiration from this merge request

提交回复
热议问题