Restart Unicorn issue (capistrano)

前端 未结 3 566
有刺的猬
有刺的猬 2020-12-13 11:47

I\'ve got following settings in deploy.rb to restart my server:

namespace :deploy do
  task :restart do
    run \"if [ -f #{unicorn_pid} ] &&         


        
3条回答
  •  南笙
    南笙 (楼主)
    2020-12-13 12:04

    see here my baby~ Restarting Unicorn with USR2 doesn't seem to reload production.rb settings

    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.

提交回复
热议问题