2015-02-11 56 views
1

当我运行mina独角兽时:启动时,出现错误:/ home/deployer/xxx-api/releases/7找不到。我确定该目录存在于服务器上。你可以好好看一看,看看这是不是米娜或米娜独角兽的问题。独角兽在使用mina时未启动

RAILS_ENV=production mina unicorn:start --verbose

Loading environment 
$ source ~/.bashrc 


Loading rbenv 
$ export RBENV_ROOT="$HOME/.rbenv" 
$ export PATH="$HOME/.rbenv/bin:$PATH" 
$ eval "$(rbenv init -)" 

-----> Starting Unicorn... 
/home/deployer/xxx-api/releases/7 not found 
Connection to 104.131.92.185 closed. 

!  Command failed. 
     Failed with status 2560 

回答

0

BAD

我知道,它实际上是黑客,但我用这个任务称为start_unicorn

task :start_unicorn => :environment do 
    queue "cd #{deploy_to}/#{current_path}; RAILS_EVN=#{rails_env} bundle exec unicorn -C#{deploy_to}/#{current_path}/config/unicorn.rb -E production -D" 
end 

然后

mina start_unicorn 

GOOD

添加路径在deploy.rb文件的Gemfile,在我的情况下,这将是:

set :bundle_gemfile,"#{deploy_to}/#{current_path}/Gemfile" 

,你可以找到以下问题同样的解决方案: https://github.com/openteam/mina-unicorn/issues/8