-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (31 loc) · 760 Bytes
/
Makefile
File metadata and controls
36 lines (31 loc) · 760 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
26
27
28
29
30
31
32
33
34
35
36
bucket-dev := 's3://NEEDADDED'
bucket-live := 's3://NEEDADDED'
develop:
@npm run start
build:
@npm run build
deploy:
@aws s3 sync build $(bucket-dev) \
--acl=public-read \
--exclude "*" \
--include "*.html" \
--delete \
--cache-control='max-age=60, must-revalidate'
@aws s3 sync build $(bucket-dev) \
--acl=public-read \
--exclude "*.html" \
--delete \
--cache-control='max-age=525600'
live:
@aws s3 sync $(bucket-dev) $(bucket-live) \
--acl=public-read \
--exclude "*" \
--include "*.html" \
--delete \
--cache-control='max-age=60, must-revalidate'
@aws s3 sync $(bucket-dev) $(bucket-live) \
--acl=public-read \
--exclude "*.html" \
--delete \
--cache-control='max-age=525600'
.PHONY: develop deploy build live