Created
December 8, 2014 15:36
-
-
Save atomkirk/891dfc23dee4e751a804 to your computer and use it in GitHub Desktop.
Pre-commit to audit source for personal code/log statements.
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
echo "Checking host URL…" | |
e=$(egrep -r '^\s+?host:.*?localhost:3000.*?$' . 2>/dev/null) | |
if [ -n "$e" ]; then | |
echo "You need to change host to heroku." | |
exit 1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This could go in .git/hooks/pre-commit to make sure there are no
NSLog
s etc.In this case, I point to my local rails server, while my coworker works off of Heroku. After forgetting I have our ember.js app pointing at my localhost and committing/pushing, I created this.