Skip to content

Instantly share code, notes, and snippets.

@erictherobot
Created February 11, 2016 15:07
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 erictherobot/89f64da394afed6ed7a9 to your computer and use it in GitHub Desktop.
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
#!/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