部署 部署 unicorn 上的时候发生

shangrenzhidao · November 29, 2013 · Last by shangrenzhidao replied at November 29, 2013 · 2092 hits

bundle exec unicorn -c config/unicorn.rb -D 出现 /usr/local/rvm/gems/ruby-1.9.3-p392/gems/unicorn-4.7.0/lib/unicorn/http_server.rb:204:in `rename': Text file busy - (/var/www/deploy_rails/tmp/pids/0.8419028835826056.4090, /var/www/deploy_rails/tmp/pids/unicorn.pid) (Errno::ETXTBSY) 请问如何解决

这个是我的 unicorn.rb

working_directory "/var/www/deploy_rails"
pid "/var/www/deploy_rails/tmp/pids/unicorn.pid"
stderr_path "/var/www/deploy_rails/log/unicorn.log"
stdout_path "/var/www/deploy_rails/log/unicorn.log"

listen "/tmp/unicorn.todo.sock"
worker_processes 2 # how many rails instances will boot up
timeout 30

代码没有格式化 , 没有看的欲望 ..... 我是不是病了 ?

#3 楼 @song940 谢谢你,这个问题解决了,我用 vagrant,在 windows 下,多多少少还是有困惑,不能放到同步文件夹下面,也就是说我只能在虚拟机中管理代码。

You need to Sign in before reply, if you don't have an account, please Sign up first.