-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcircle.yml
More file actions
25 lines (23 loc) · 814 Bytes
/
circle.yml
File metadata and controls
25 lines (23 loc) · 814 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
dependencies:
post:
- bundle exec bundle-audit check --update
checkout:
post:
- cp config/application.yml.example config/application.yml
deployment:
production:
branch: master
commands:
# Use this if you want to backup the DB before deployments
- heroku pg:backups capture --app supportsam
# Required to fix this error on CircleCI:
#
# "Push rejected, source repository is a shallow clone.
# Unshallow it with `git fetch --all --unshallow` and try pushing again."
- '[[ ! -s "$(git rev-parse --git-dir)/shallow" ]] || git fetch --unshallow'
- git push git@heroku.com:supportsam.git HEAD:master:
timeout: 300
- heroku run rake db:migrate --app supportsam:
timeout: 300
- heroku restart --app supportsam:
timeout: 300