Created
December 30, 2015 19:25
-
-
Save iloveitaly/c1095b9adb98beac2ff9 to your computer and use it in GitHub Desktop.
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/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