Ruby on rails Bundle stderr:ArgumentError:“…”;。。。tmp/pids/unicorn.pid“;不可写。如何解决?

Ruby on rails Bundle stderr:ArgumentError:“…”;。。。tmp/pids/unicorn.pid“;不可写。如何解决?,ruby-on-rails,ubuntu,nginx,capistrano,unicorn,Ruby On Rails,Ubuntu,Nginx,Capistrano,Unicorn,我正在使用Capistrano部署代码,在这个过程中,我得到了 SSHKit::Runner::ExecuteError: Exception while executing as deployer@IP: Exception while executing as deployer@IP: bundle exit status: 1 bundle stdout: bundler: failed to load command: unicorn (/home/deployer/apps/proje

我正在使用Capistrano部署代码,在这个过程中,我得到了

SSHKit::Runner::ExecuteError: Exception while executing as deployer@IP: Exception while executing as deployer@IP: bundle exit status: 1
bundle stdout: bundler: failed to load command: unicorn (/home/deployer/apps/project/shared/bundle/ruby/2.4.0/bin/unicorn)
bundle stderr: ArgumentError: directory for pid=/home/deployer/apps/project/current/tmp/pids/unicorn.pid not writable
我如何解决这个问题?是否需要在
deploy.rb
文件中设置一些内容

我试图手动创建
pids
目录,在777上设置权限(
mkdir-m777pids
),但没有任何帮助


如何使该目录可写?

这可能是的副本

你确定这条路是对的吗?我认为pids目录应该在
\u共享目录下,而不是当前目录下(这是指向
realease/something
的符号链接)

如果路径是硬编码的,请尝试将其更改为
/home/deployer/apps/project/shared/tmp/pids/unicorn.pid