#! /bin/bash

set -ex

if git remote | grep heroku > /dev/null; then
  git fetch heroku
  yarn deploy
  heroku restart
  yarn sentry
else
  echo "Heroku is not set up :("
  exit 1
fi

#! /bin/bash

set -ex

if git remote | grep heroku > /dev/null; then
  git fetch heroku
  yarn deploy
  yarn sentry
else
  echo "Heroku is not set up :("
  exit 1
fi

Remove unnecessary `heroku restart` after deployment
Remove unnecessary `heroku restart` after deployment

Heroku will restart dynos when after deployment.
https://devcenter.heroku.com/articles/dynos#restarting
