-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
42 lines (34 loc) · 866 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
32
33
34
35
36
37
38
39
40
41
42
init:
npm install
.PHONY: init
start:
npm start
.PHONY: start
build:
npm rebuild node-sass
npm run build
.PHONY: build
deploy-prod:
python deployment/prepare_to_deploy.py prod 0 1
npm run build && aws2 s3 sync build/ s3://admin.massenergize.org
.PHONY: deploy-prod
deploy-canary:
python deployment/prepare_to_deploy.py canary 0 1
npm run build && aws2 s3 sync build/ s3://admin-canary.massenergize.org
.PHONY: deploy-prod
deploy-dev:
python deployment/prepare_to_deploy.py dev 0 1
npm run build && aws2 s3 sync build/ s3://admin-dev.massenergize.org
.PHONY: deploy-dev
run-dev:
python deployment/prepare_to_deploy.py dev $(local)
npm start
.PHONY: run-dev
run-prod:
python deployment/prepare_to_deploy.py prod $(local)
npm start
.PHONY: run-prod
run-canary:
python deployment/prepare_to_deploy.py canary $(local)
npm start
.PHONY: run-canary