'上限生产设置' &安培; '上限生产部署'没有执行

时间:2015-01-14 16:17:07

标签: deployment capistrano

我已经通过ubuntu服务器14.10上的capistrano在rails上设置了部署ruby的所有东西 但是当我通过cap生产设置或部署执行命令时 我有这个错误信息,所以我找到了.rbenv / bin / rbenv的路径,但是没有'

我该如何解决这个问题 以下是我收到的错误消息 谢谢

**DEBUG [2814493d] Finished in 3.501 seconds with exit status 0 (successful).

DEBUG [3f8ba0c4] Running /usr/bin/env [ -d ~/.rbenv/plugins/ruby-build ] as 

deployer@railserver.cloudapp.net

DEBUG [3f8ba0c4] Command: [ -d ~/.rbenv/plugins/ruby-build ]

DEBUG [3f8ba0c4] Finished in 0.012 seconds with exit status 0 (successful).

DEBUG [243e2a34] Running /usr/bin/env [ -d ~/.rbenv/versions/2.1.2 ] as 
deployer@railserver.cloudapp.net

DEBUG [243e2a34] Command: [ -d ~/.rbenv/versions/2.1.2 ]

DEBUG [243e2a34] Finished in 0.009 seconds with exit status 0 (successful).

DEBUG [7a6e00da] Running RBENV_ROOT=~/.rbenv RBENV_VERSION=2.1.2 ~/.rbenv/bin/rbenv exec gem query 
--quiet --installed --name-matches ^bundler$ as deployer@railserver.cloudapp.net

DEBUG [7a6e00da] Command: ( PATH=~/.rbenv/shims:~/.rbenv/bin:$PATH RBENV_ROOT=~/.rbenv 
RBENV_VERSION=2.1.2 RBENV_ROOT=~/.rbenv RBENV_VERSION=2.1.2 ~/.rbenv/bin/rbenv exec gem query 
--quiet --installed --name-matches ^bundler$ )

DEBUG [7a6e00da]        bash: /home/deployer/.rbenv/bin/rbenv: No such file or directory

DEBUG [7a6e00da] Finished in 0.009 seconds with exit status 127 (failed).

INFO [d6c3086f] Running RBENV_ROOT=~/.rbenv RBENV_VERSION=2.1.2 ~/.rbenv/bin/rbenv exec gem install 
bundler --quiet --no-rdoc --no-ri as deployer@railserver.cloudapp.net

DEBUG [d6c3086f] Command: ( PATH=~/.rbenv/shims:~/.rbenv/bin:$PATH RBENV_ROOT=~/.rbenv 
RBENV_VERSION=2.1.2 RBENV_ROOT=~/.rbenv RBENV_VERSION=2.1.2 ~/.rbenv/bin/rbenv exec gem install 
bundler --quiet --no-rdoc --no-ri )

DEBUG [d6c3086f]        bash: /home/deployer/.rbenv/bin/rbenv: No such file or directory

(Backtrace restricted to imported tasks)

cap aborted!

SSHKit::Runner::ExecuteError: Exception while executing as deployer@railserver.cloudapp.net: gem 
exit status: 127

gem stdout: Nothing written

gem stderr: bash: /home/deployer/.rbenv/bin/rbenv: No such file or directory

SSHKit::Command::Failed: gem exit status: 127

gem stdout: Nothing written

gem stderr: bash: /home/deployer/.rbenv/bin/rbenv: No such file or directory

Tasks: TOP => rbenv:install_bundler

(See full trace by running task with --trace)

deployer@railserver:~/rubyonrailstest$ cap aborted!

Stage not set, please call something such as `cap production deploy`, where production is a stage 
you have defined.**

1 个答案:

答案 0 :(得分:0)

我建议capistrano-rbenv-install plugin。它会产生类似你消失的问题。