Restarting Unicorn with USR2 doesn't seem to reload production.rb settings

前端 未结 2 1071
Happy的楠姐
Happy的楠姐 2021-02-01 17:58

I\'m running unicorn and am trying to get zero downtime restarts working.

So far it is all awesome sauce, the master process forks and starts 4 new workers, then kills t

2条回答
  •  我在风中等你
    2021-02-01 18:36

    Keep in mind that: your working directory in unicorn.rb should be : /your/cap/directory/current

    NOT be: File.expand_path("../..", FILE)

    Because the unicorn and linux soft link forking error: soft link can not work well.

    for example:

    cd current #current is a soft link to another directory

    ... ...

    when we get our working directory, we got the absolute path not the path in "current"

提交回复
热议问题