Skip to content

Commit

Permalink
Merge pull request #73 from zhishi-engine/deployscript
Browse files Browse the repository at this point in the history
added a deploy script
  • Loading branch information
0sc committed Apr 7, 2016
2 parents 20fc57d + b9402e4 commit 6d1abb8
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 6d1abb8

Please sign in to comment.