Skip to content

Instantly share code, notes, and snippets.

@iloveitaly
Created December 30, 2015 19:25
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 iloveitaly/c1095b9adb98beac2ff9 to your computer and use it in GitHub Desktop.
Save iloveitaly/c1095b9adb98beac2ff9 to your computer and use it in GitHub Desktop.
#!/bin/bash
# For use in a `bin/setup` script to make onboarding new devs painless
# by configuring the current directory to link to a hard coded heroku app name
# test if heroku is configured for the app
if ! heroku config 2>&1 > /dev/null; then
echo $'\nHeroku is not configured. Configuring Heroku...'
# NOTE heroku app name hardcoded here
if ! heroku git:remote -a heroku_app; then
echo $'\nError configuring Heroku...'
exit 1
fi
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment