Created
May 11, 2020 15:03
-
-
Save leandroh/ba5f945600d33546e7d8f9a56111b034 to your computer and use it in GitHub Desktop.
Connects to the production server configured in Capistrano
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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