-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
30 lines (30 loc) · 1.08 KB
/
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
25
26
27
28
29
30
test:
bundle exec rspec
migrate:
rake db:migrate
bundle exec rake db:migrate RAILS_ENV=test
wipe:
bundle exec rake db:drop db:setup
db:
heroku pg:psql --app=stranger-tides
open:
heroku open --app=stranger-tides
backup:
heroku pg:backups capture --app stranger-tides
curl -o pg-production-latest.dump 'heroku pg:backups public-url --app stranger-tides'
bzip2 pg-production-latest.dump
deploy:
heroku maintenance:on --app=stranger-tides
git tag production_release_`date +"%Y%m%d-%H%M%S"`
git push --tags
git push production master
heroku run rake db:migrate --app=stranger-tides
heroku run rake stations_delete:delete_station_list --app=stranger-tides
heroku run rake stations_id_list:process_station_list --app=stranger-tides
heroku run rake station_list:retrieve_all_stations_metadata --app=stranger-tides
heroku maintenance:off --app=stranger-tides
local-rake:
rake db:migrate
rake station_list:retrieve_all_stations_metadata # Process metadata
rake stations_delete:delete_station_list # Delete Station List
rake stations_id_list:process_station_list # Station List