Skip to content

Instantly share code, notes, and snippets.

@leandroh
Created May 11, 2020 15:03
Show Gist options
  • Save leandroh/ba5f945600d33546e7d8f9a56111b034 to your computer and use it in GitHub Desktop.
Save leandroh/ba5f945600d33546e7d8f9a56111b034 to your computer and use it in GitHub Desktop.
Connects to the production server configured in Capistrano
#!/bin/sh
USER="deploy"
SERVER=$(cat config/deploy/production.rb | sed -n '2p' | awk '{print $2}' | sed -e "s#[',]##g")
ssh $USER@$SERVER
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment