diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..660a267 --- /dev/null +++ b/deploy.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +if [ -z "$REMOTE" ]; then + branch='test' +else + branch=$REMOTE +fi + +git push $branch master + +heroku run rake db:migrate --remote $branch +heroku run rake zhishi:es:reindex[question] --remote $branch +heroku run rake zhishi:es:reindex[tag] --remote $branch