ruby on rails - Capistrano 3 - Cap Production Deploy Error -
i trying run production deploy. on server, got 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 <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 running task --trace) the deploy has failed error: #<sshkit::runner::executeerror: exception while executing on host 172.31.47.95: exit>
however, when try run on local project folder, 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: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>' can help? thank much!
Comments
Post a Comment