Questions tagged [sshkit]

sshkit is a toolkit for deploying code and assets to servers in a repeatable, testable, reliable way.

SSHKit is a toolkit for deploying code and assets to servers in a repeatable, testable, reliable way. In other words, SSHKit is a toolkit for running commands in a structured way on one or more servers.

SSHKit provides a convenient set of API which are nestable in any order, repeatable, and stackable. There are some helper APIs also which are convenient helpers for Ruby, and Rails based apps.

SSHKit uses a simple connection pool (enabled by default) to reduce the cost of negotiating a new SSH connection for every on() block. Depending on usage and network conditions, this can add up to a significant time savings. In one test, a basic cap deploy ran 15-20 seconds faster thanks to the connection pooling added in recent versions of SSHKit. It provides concurrency handling, sane error checking and control flow that would otherwise be difficult to achieve with pure Net::SSH.

You should use this tag if your question is related with SSHkit toolkit usage.

42 questions
0
votes
0 answers

capistrano aborts - SSHKit::Runner::ExecuteError and Devise.secret_key was not set

I'm trying to update an app (Rails 4.1.12; ruby 1.9.3p484) by deploying changes from development to production using capistrano. Below is log (I masked the IP address and suggested secret key). Previously never had a problem running a deploy. Have…
JeffA
  • 166
  • 1
  • 17
0
votes
0 answers

how to resolve /usr/bin/env: ruby: No such file or directory, with sshkit and rvm on rails4 application

I am trying to run rake task rake entrprise:pull on remote system from Rails application with rake task using sshkit and I am using rvm. rake task require 'sshkit' require 'sshkit/dsl' include SSHKit::DSL namespace :app do desc "pulls the…
CodecPM
  • 423
  • 6
  • 18
0
votes
1 answer

Capistrano Deployment Failure - SSH Kit?

Preface by saying that I'm new to Capistrano. That being said, I've got a functional app that I've used Capistrano to deploy several times before. I made several updates to the app and attempted cap production deploy. I got this error output: **…
PSCampbell
  • 858
  • 9
  • 27
0
votes
1 answer

Capistrano change command when executed on localhost

I'm new to Capistrano and Ruby/Rake as well. Since I work locally in Windows, I'm having quite a hard time now and then.. I'm running capistrano-wpcli to push and pull my Wordpress database. The script do use gunzip in the process, which works fine…
frofrik
  • 13
  • 4
0
votes
0 answers

Using Ruby with sshkit

rbenv and Ruby are setup for the logged in sshkit user, but the path seems broken. `rescue in block (2 levels) in execute': Exception while executing as user@server.com : bundle install exit status: 127 (SSHKit::Runner::ExecuteError) bundle install…
Stefan Kendall
  • 66,414
  • 68
  • 253
  • 406
0
votes
1 answer

Capistrano: Supply password from local variable for ssh sign-in so that there is no prompt

I was wondering if it is possible to use an asked password for the ssh login, the interaction_handler doesn't seem to work for this task. So far I have: ask :ip, 'Enter the ip of the server: ' fetch(:ip) ask :pw, 'Enter user password: ', echo:…
Cenoc
  • 11,172
  • 21
  • 58
  • 92
0
votes
0 answers

capistrano3 permission denied (using proxy)

I'm trying to migrate my capistrano v2 script to the new v3.4 version. All went well with development stage: I have one EC2 instance, and the deploy completed without errors. I'm having some troubles with my production script, because I've got a…
satboy78
  • 217
  • 1
  • 5
  • 14
0
votes
1 answer

Is it possible to forward X11 windows in a Capistrano 3?

I'm trying to forward an X11 window from a remote server. Usually I can do something like ssh -X some@address and then for example run feh image.jpg to see the image.jpg picture on my local machine. Is it possible to get that behaviour in…
Ingo
  • 802
  • 9
  • 21
0
votes
1 answer

How to get the final command to be executed by sshkit

I want to create a gem that has de ability to take a task and wrap all commands in another command. For example, the capistrano3-unicorn gem unicorn:start task will execute on the server something like bundle exec unicorn -c unicorn.rb -E…
blackjid
  • 1,571
  • 16
  • 23
0
votes
1 answer

capistrano 3 pury ruby error -- Don't know how to build task ':check'

i followed capistrano in ruby script documentation. my files: $ ls deploy.rb Gemfile Gemfile.lock capistrano version: $ cat Gemfile | grep -i cap gem "capistrano", "3.2.1" ruby version: $ bundle exec ruby --version ruby 2.1.2p95 (2014-05-08…
Mr.
  • 9,429
  • 13
  • 58
  • 82
0
votes
1 answer

How to set RUBY_GC_MALLOC_LIMIT with capistrano 3 on thin restart?

I use capistrano 3, rvm und bundler for my deployment. The thin server are restarted like this: within release_path do execute :bundle, :exec, "thin restart -O -C config/thin/staging.yml" end This work fine and generate this command: cd…
Piioo
  • 759
  • 10
  • 24
1 2
3