Created
February 24, 2016 16:52
-
-
Save DiegoSalazar/221058f0ef57d662d7bc to your computer and use it in GitHub Desktop.
Open a heroku rails console for an app
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
hcon() { | |
appName=$1 | |
if [ -z "$appName" ] | |
then | |
echo "fucking provide a Heroku app name" | |
exit 1 | |
fi | |
heroku run rails console -a $appName | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment