Capistrano 3 - Cap Production Deploy Error

时间:2015-05-30 17:35:41

标签: ruby-on-rails ruby ruby-on-rails-3 capistrano capistrano3

我正在尝试运行生产部署。在服务器上,我收到了这条消息:

SSHKit::Runner::ExecuteError: Exception while executing on host 172.31.47.95: exit
/home/ec2-user/.rvm/gems/ruby-2.1.3/gems/capistrano-3.1.0/lib/capistrano/tasks/git.rake:28:in `exit'
/home/ec2-user/.rvm/gems/ruby-2.1.3/gems/capistrano-3.1.0/lib/capistrano/tasks/git.rake:28:in `block (4 levels) in <top (required)>'
/home/ec2-user/.rvm/gems/ruby-2.1.3/gems/sshkit-1.5.1/lib/sshkit/backends/abstract.rb:85:in `with'
/home/ec2-user/.rvm/gems/ruby-2.1.3/gems/capistrano-3.1.0/lib/capistrano/tasks/git.rake:27:in `block (3 levels) in <top (required)>'
/home/ec2-user/.rvm/gems/ruby-2.1.3/gems/sshkit-1.5.1/lib/sshkit/backends/netssh.rb:54:in `instance_exec'
/home/ec2-user/.rvm/gems/ruby-2.1.3/gems/sshkit-1.5.1/lib/sshkit/backends/netssh.rb:54:in `run'
/home/ec2-user/.rvm/gems/ruby-2.1.3/gems/sshkit-1.5.1/lib/sshkit/runners/parallel.rb:13:in `block (2 levels) in execute'
SystemExit: exit
/home/ec2-user/.rvm/gems/ruby-2.1.3/gems/capistrano-3.1.0/lib/capistrano/tasks/git.rake:28:in `exit'
/home/ec2-user/.rvm/gems/ruby-2.1.3/gems/capistrano-3.1.0/lib/capistrano/tasks/git.rake:28:in `block (4 levels) in <top (required)>'
/home/ec2-user/.rvm/gems/ruby-2.1.3/gems/sshkit-1.5.1/lib/sshkit/backends/abstract.rb:85:in `with'
/home/ec2-user/.rvm/gems/ruby-2.1.3/gems/capistrano-3.1.0/lib/capistrano/tasks/git.rake:27:in `block (3 levels) in <top (required)>'
/home/ec2-user/.rvm/gems/ruby-2.1.3/gems/sshkit-1.5.1/lib/sshkit/backends/netssh.rb:54:in `instance_exec'
/home/ec2-user/.rvm/gems/ruby-2.1.3/gems/sshkit-1.5.1/lib/sshkit/backends/netssh.rb:54:in `run'
/home/ec2-user/.rvm/gems/ruby-2.1.3/gems/sshkit-1.5.1/lib/sshkit/runners/parallel.rb:13:in `block (2 levels) in execute'
Tasks: TOP => git:check
(See full trace by running task with --trace)

部署失败,出现错误:#<SSHKit::Runner::ExecuteError: Exception while executing on host 172.31.47.95: exit>

但是,当我尝试在我的本地项目文件夹上运行它时,我得到了这个错误:

LoadError: cannot load such file -- rvm1/capistrano3
/Users/administrator/Desktop/CitySpade/Capfile:22:in `<top (required)>'
/Library/Ruby/Gems/2.0.0/gems/capistrano-3.1.0/lib/capistrano/application.rb:24:in `load_rakefile'
/Library/Ruby/Gems/2.0.0/gems/capistrano-3.1.0/lib/capistrano/application.rb:15:in `run'
/Library/Ruby/Gems/2.0.0/gems/capistrano-3.1.0/bin/cap:3:in `<top (required)>'
/usr/bin/cap:23:in `load'
/usr/bin/cap:23:in `<main>'

有人可以帮忙吗?非常感谢!

0 个答案:

没有答案