Skip to content

Instantly share code, notes, and snippets.

@DiegoSalazar
Created February 24, 2016 16:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DiegoSalazar/221058f0ef57d662d7bc to your computer and use it in GitHub Desktop.
Save DiegoSalazar/221058f0ef57d662d7bc to your computer and use it in GitHub Desktop.
Open a heroku rails console for an app
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