#!/bin/bash -e

# Script to sync to master branch and push results to Heroku
# Then run setup.sh script to make sure all migrations are applied.
#
# Assumes that a Heroku remote is configured, and Heroku CLI is installed. See
# https://devcenter.heroku.com/articles/git for details.

git checkout master
git pull origin
git push heroku master
heroku run ./setup.sh

#!/bin/bash -e

# Script to sync to master branch and push results to Heroku
# Then run setup.sh script to make sure all migrations are applied.
#
# Assumes that a Heroku remote is configured. See
# https://devcenter.heroku.com/articles/git for details.

git checkout master
git pull origin
git push heroku master
./setup.sh

--- 
+++ 
@@ -3,10 +3,10 @@
 # Script to sync to master branch and push results to Heroku
 # Then run setup.sh script to make sure all migrations are applied.
 #
-# Assumes that a Heroku remote is configured, and Heroku CLI is installed. See
+# Assumes that a Heroku remote is configured. See
 # https://devcenter.heroku.com/articles/git for details.
 
 git checkout master
 git pull origin
 git push heroku master
-heroku run ./setup.sh
+./setup.sh
Call setup.sh script during deploy on Heroku, not locally.
