samedi 30 mai 2015

Capistrano 3 - Cap Production Deploy Error

I am trying to run a production deploy. On server, I got this message:

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 '

/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 '

/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 '

/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 '

/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)

The deploy has failed with an error: #

However, when I try to run it on my local project folder, I get this error instead: 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:inload_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' /usr/bin/cap:23:in load' /usr/bin/cap:23:in'

Can someone help? Thank you so much!

Aucun commentaire:

Enregistrer un commentaire