K
K
kramidev2015-03-07 16:04:49
Ruby on Rails
kramidev, 2015-03-07 16:04:49

Issues with cap production deploy. How to decide?

Hi all. at cap production deploy this error climbs. Where to swim and how to decide please tell me. The solution to google did not work.

cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing as [email protected]: exit
/home/kramidev/.rvm/gems/ruby-2.2.0/gems/sshkit-1.7.1/lib/sshkit/runners/parallel.rb:16:in `rescue in block (2 levels) in execute'
/home/kramidev/.rvm/gems/ruby-2.2.0/gems/sshkit-1.7.1/lib/sshkit/runners/parallel.rb:12:in `block (2 levels) in execute'
SystemExit: exit
/home/kramidev/.rvm/gems/ruby-2.2.0/gems/capistrano-3.2.1/lib/capistrano/tasks/git.rake:28:in `exit'
/home/kramidev/.rvm/gems/ruby-2.2.0/gems/capistrano-3.2.1/lib/capistrano/tasks/git.rake:28:in `block (4 levels) in <top (required)>'
/home/kramidev/.rvm/gems/ruby-2.2.0/gems/sshkit-1.7.1/lib/sshkit/backends/abstract.rb:85:in `with'
/home/kramidev/.rvm/gems/ruby-2.2.0/gems/capistrano-3.2.1/lib/capistrano/tasks/git.rake:27:in `block (3 levels) in <top (required)>'
/home/kramidev/.rvm/gems/ruby-2.2.0/gems/sshkit-1.7.1/lib/sshkit/backends/netssh.rb:54:in `instance_exec'
/home/kramidev/.rvm/gems/ruby-2.2.0/gems/sshkit-1.7.1/lib/sshkit/backends/netssh.rb:54:in `run'
/home/kramidev/.rvm/gems/ruby-2.2.0/gems/sshkit-1.7.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: #<SSHKit::Runner::ExecuteError: Exception while executing as [email protected]: exit>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Elchev, 2015-03-08
@kramidev

First, you need a config. Without him, it's hard to say what went wrong.
Second, check if you have the role installed:

set :stage, :production
set :branch, 'master'
set :deploy_to, '/srv/www/server.com/'
role :all, %w{[email protected]}
server 'server.com', user: 'deploy', roles: %w{web app}, my_property: :my_value
fetch(:default_env).merge!(rails_env: :production)

There is an excellent manual
here. You can also try to execute
To check the config

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question