Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby-on-rails-4/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 4 使用mina时独角兽未启动_Ruby On Rails 4_Unicorn_Mina - Fatal编程技术网

Ruby on rails 4 使用mina时独角兽未启动

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

当我运行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};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