Unicorn unable to write pid file

前端 未结 3 1244
醉酒成梦
醉酒成梦 2021-02-02 13:58

I am using deploying a Ruby on Rails app to a Linode VPS using Capistrano. I am using Unicorn as the application server and Nginx as the proxy. My problem is that I am not able

3条回答
  •  情深已故
    2021-02-02 14:40

    in capistrano 3; if we change roles to :all, then while deployment capistrano saying; WARN [SKIPPING] No Matching Host for ..... and after deployment all symlinks not working anymore. And if tmp/pids folder in symlink array, then unicorn can't find the tmp/pids folder and saying unicorn.pid is not writable.

    So we must use; roles: %w{web app db} instead of roles :all.

    Sample server line at production.rb;

    server 'YOUR_SERVER_IP', user: 'YOUR_DEPLOY_USER', roles: %w{web app db}, ssh_options: { forward_agent: true }

提交回复
热议问题