Skip to content

Commit

Permalink
added a deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
Oreoluwa Akinniranye committed Apr 5, 2016
1 parent 708ac74 commit b9402e4
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b9402e4

Please sign in to comment.