-
-
Notifications
You must be signed in to change notification settings - Fork 194
/
Makefile
24 lines (24 loc) · 983 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
backup_production:
heroku pgbackups:capture --app=codebar-production
curl -o pg-production-latest.dump `heroku pgbackups:url --app=codebar-production`
bzip2 pg-production-latest.dump
deploy_production:
heroku maintenance:on --app=codebar-production
git tag production_release_`date +"%Y%m%d-%H%M%S"`
git push upstream --tags
git push production master
heroku run rake db:migrate --app=codebar-production
heroku maintenance:off --app=codebar-production
backup_staging:
heroku pgbackups:capture --app=codebar-staging
curl -o pg-staging-latest.dump `heroku pgbackups:url --app=codebar-staging`
bzip2 pg-staging-latest.dump
deploy_staging:
heroku maintenance:on --app=codebar-staging
git tag staging_release_`date +"%Y%m%d-%H%M%S"`
git push upstream --tags
git push staging master
heroku run rake db:migrate --app=codebar-staging
heroku maintenance:off --app=codebar-staging
serve:
rm -f ./tmp/pids/server.pid && bundle exec rails server --binding=0.0.0.0 --port=3000