Read more

Script to open an SSH shell to a Capistrano deployment target

Dominik Schöler
May 13, 2011Software engineer at makandra GmbH

We regularly need to connect to the server in order to e.g. access the production console. Guessing the Capistrano deploy user and then again guessing the right directory on the server is awkward, so we wrote a script that parses config/deploy and gives you the handy command shell-for.

Illustration online protection

Rails Long Term Support

Rails LTS provides security patches for old versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2)

  • Prevents you from data breaches and liability risks
  • Upgrade at your own pace
  • Works with modern Rubies
Read more Show archive.org snapshot

Run it from any project directory like this, passing a Capistrano multistage deployment target:

shell-for staging

Now it also supports commands to be remotely executed before loading the bash. Use --no-bash to only execute the command and load no bash.

shell-for staging --no-bash top

This script is part of our geordi gem on github Show archive.org snapshot .

Posted by Dominik Schöler to makandra dev (2011-05-13 17:42)