forked from sanfrancesco/prerendercloud-lambda-edge
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
19 lines (14 loc) · 652 Bytes
/
Makefile
File metadata and controls
19 lines (14 loc) · 652 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
.PHONY: destroy deploy invalidate listinvalidations test destroy
destroy:
./node_modules/.bin/serverless remove
deploy:
node ./validate.js
./node_modules/.bin/serverless deploy
CLOUDFRONT_DISTRIBUTION_ID="${CLOUDFRONT_DISTRIBUTION_ID}" node deploy.js
CLOUDFRONT_DISTRIBUTION_ID="${CLOUDFRONT_DISTRIBUTION_ID}" node create-invalidation.js
invalidate:
CLOUDFRONT_DISTRIBUTION_ID="${CLOUDFRONT_DISTRIBUTION_ID}" node create-invalidation.js
listinvalidations:
aws cloudfront list-invalidations --distribution-id "" | head
test:
DEBUG=prerendercloud PRERENDER_SERVICE_URL="https://service.prerender.cloud" ./node_modules/jasmine/bin/jasmine.js