Last active
January 12, 2019 00:11
-
-
Save shannonwells/e90a5ffcf65917ab1ea9f7ff05cf1373 to your computer and use it in GitHub Desktop.
Script to do all the updating and whatnot to prepare for rebasing or creating a new git branch -- for a Rails project with yarn
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 | |
THISDIR="dirname ${BASH_SOURCE}" | |
echo "Updating your repo." | |
echo "☕️ Take a break - this might take a few minutes." | |
git co development -q | |
git pull origin development --ff-only -q | |
git fetch --prune -q | |
bundle install --quiet | |
yarn install -s | |
bundle exec rake db:migrate db:test:prepare -q | |
${THISDIR}/webpack | |
echo "🍩 Done." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment