【发布时间】:2017-07-26 08:10:02
【问题描述】:
我正在使用 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 -m 777 pids) 的权限,但没有任何帮助。
如何使该目录可写?
【问题讨论】:
标签: ruby-on-rails ubuntu nginx capistrano unicorn