Ruby on rails 4 使用mina时独角兽未启动
当我运行mina unicorn:start时,我得到一个错误:/home/deployer/xxx api/releases/7 not found。我确信服务器上存在该目录。你能看看这是不是米娜或米娜独角兽的问题吗 RAILS_ENV=生产mina unicorn:start--verbose 坏的: 我知道,这实际上是黑客攻击,但我使用了这个名为“启动独角兽”的任务Ruby on rails 4 使用mina时独角兽未启动,ruby-on-rails-4,unicorn,mina,Ruby On Rails 4,Unicorn,Mina,当我运行mina unicorn:start时,我得到一个错误:/home/deployer/xxx api/releases/7 not found。我确信服务器上存在该目录。你能看看这是不是米娜或米娜独角兽的问题吗 RAILS_ENV=生产mina unicorn:start--verbose 坏的: 我知道,这实际上是黑客攻击,但我使用了这个名为“启动独角兽”的任务 task:start\u unicorn=>:环境执行 队列“cd{deploy_to}/{current_path};RA
task:start\u unicorn=>:环境执行
队列“cd{deploy_to}/{current_path};RAILS_EVN={RAILS_env}bundle exec unicorn-c{deploy_to}/{current_path}/config/unicorn.rb-E production-D”
终止
然后
mina start\u独角兽
好:
在deploy.rb文件中添加gemfile的路径,在我的情况下,它将是:
set:bundle_gemfile,“#{deploy_to}/#{current_path}/gemfile”
您可以在以下问题中找到相同的解决方案:
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