-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
22 lines (22 loc) · 941 Bytes
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
deployment:
production:
branch: master
commands:
# Staging deploy
- '[[ ! -s "$(git rev-parse --git-dir)/shallow" ]] || git fetch --unshallow'
- git push [email protected]:takeaways-staging.git $CIRCLE_SHA1:master
- heroku run rake db:migrate --app takeaways-staging
- heroku restart --app takeaways-staging
# Production deploy
- '[[ ! -s "$(git rev-parse --git-dir)/shallow" ]] || git fetch --unshallow'
- git push [email protected]:takeaways.git $CIRCLE_SHA1:master
- heroku run rake db:migrate --app takeaways
- heroku restart --app takeaways
staging:
branch: staging
commands:
# Staging deploy
- '[[ ! -s "$(git rev-parse --git-dir)/shallow" ]] || git fetch --unshallow'
- git push [email protected]:takeaways-staging.git $CIRCLE_SHA1:master
- heroku run rake db:migrate --app takeaways-staging
- heroku restart --app takeaways-staging