Unicorn restart/upgrade doesn't work

后端 未结 4 411
难免孤独
难免孤独 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:06

    I had the same issue, but I was using rbenv which was installed on per user basis. I used this init script

    I figured out that since my rbenv installed on per user basis I need to slightly change this:

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

    with this:

    CMD="cd $APP_ROOT; ~/.rbenv/bin/rbenv exec bundle exec unicorn -D -c $APP_ROOT/config/unicorn.rb -E production"
    

    Hope it will help you!

    P.S. or somebody else since it's an old question =)

提交回复
热议问题