-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
31 lines (26 loc) · 952 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
25
26
27
28
29
30
31
deploy-staging:
make deploy-staging-api
make deploy-staging-web
deploy-staging-api:
git branch --force heroku-api
git branch -D heroku-api
git subtree split --prefix api -b heroku-api
git push heroku-api heroku-api:master --force
deploy-staging-web:
git branch --force heroku-web
git branch -D heroku-web
git subtree split --prefix ui-react -b heroku-web
git push heroku-web heroku-web:master --force
deploy-production:
make deploy-production-api
make deploy-production-web
deploy-production-api:
git branch --force heroku-production-api
git branch -D heroku-production-api
git subtree split --prefix api -b heroku-production-api
git push heroku-production-api heroku-production-api:master --force
deploy-production-web:
git branch --force heroku-production-web
git branch -D heroku-production-web
git subtree split --prefix ui-react -b heroku-production-web
git push heroku-production-web heroku-production-web:master --force