Skip to content

Instantly share code, notes, and snippets.

@shannonwells
Last active January 12, 2019 00:11
Show Gist options
  • Save shannonwells/e90a5ffcf65917ab1ea9f7ff05cf1373 to your computer and use it in GitHub Desktop.
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
#!/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