-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
23 lines (18 loc) · 1.25 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
dev:
@echo $$AWS_ACCESS_KEY_ID
jq '.profile |= "uneet-dev" |.stages.production |= (.domain = "prince.dev.unee-t.com" | .zone = "dev.unee-t.com")| .actions[0].emails |= ["[email protected]"] | .lambda.policy[1].Resource[0] = "arn:aws:s3:::dev-media-unee-t/*"' up.json.in > up.json
up deploy production
demo:
@echo $$AWS_ACCESS_KEY_ID
jq '.profile |= "uneet-demo" |.stages.production |= (.domain = "prince.demo.unee-t.com" | .zone = "demo.unee-t.com") | .actions[0].emails |= ["[email protected]"] | .lambda.policy[1].Resource[0] = "arn:aws:s3:::demo-media-unee-t/*"' up.json.in > up.json
up deploy production
prod:
@echo $$AWS_ACCESS_KEY_ID
jq '.profile |= "uneet-prod" |.stages.production |= (.domain = "prince.unee-t.com" | .zone = "unee-t.com")| .actions[0].emails |= ["[email protected]"] | .lambda.policy[1].Resource[0] = "arn:aws:s3:::prod-media-unee-t/*"' up.json.in > up.json
up deploy production
localtest:
curl -X POST -d '{ "document_url": "https://media.dev.unee-t.com/2018-10-11/12345678-5c33ae52.html" }' localhost:3000
remotetest:
curl -X POST -d '{ "document_url": "https://s3-ap-southeast-1.amazonaws.com/dev-media-unee-t/2018-08-17/tee.html" }' https://prince.dev.unee-t.com
logs:
up logs production