Skip to content

Instantly share code, notes, and snippets.

@Azzawie
Last active October 5, 2020 01:59
Show Gist options
  • Save Azzawie/88e75df0b21aaf9729d09bc4b23db671 to your computer and use it in GitHub Desktop.
Save Azzawie/88e75df0b21aaf9729d09bc4b23db671 to your computer and use it in GitHub Desktop.
bash_tricks
  1. Select which branch to deploy to
      alias deploy='deploy_webport_to_qa'
      function deploy_webport_to_qa {
        BRANCH=$1
        if [ "$BRANCH" = "" ]; then
          BRANCH=$(git branch --show-current)
          echo "No branch specified."
          echo "Using currently checked out: $BRANCH"
          echo "Press enter to continue or ctl-c to quit"
          read go
        fi
        bundle exec cap deploy qa BRANCH=$BRANCH
        return 0
      }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment