Created
February 11, 2016 15:07
-
-
Save erictherobot/89f64da394afed6ed7a9 to your computer and use it in GitHub Desktop.
A simple program to update, build, commit, and deploy all sites in my ~/Heroku directory on my mac
This file contains hidden or 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 | |
commit_message="Updating NPM packages" | |
echo $commit_message | |
for d in ~/Heroku/*; | |
do | |
[ -d $d ] && cd "$d" && echo updating and deploying inside $d && ncu -u && grunt build && git add . && git commit -m "$commit_message" && git push origin master && echo Finished updating and deploying inside $d | |
done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment