-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
47 lines (36 loc) · 985 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
43
44
45
46
47
#
# Makefile - for the OneTable Controller
#
AWS_PROFILE ?=
AWS_REGION ?= ap-southeast-2
PROFILE ?= qa
CONTROLLER ?= controller
ifndef SHOW
.SILENT:
endif
all: run
configure:
npm install
build:
echo Building for profile $(PROFILE)
npm run build
package:
echo sls package -s $(PROFILE) --verbose
sls package -s $(PROFILE) --verbose
update:
echo sls deploy -s $(PROFILE) -f $(CONTROLLER) --verbose
sls deploy -s $(PROFILE) -f $(CONTROLLER) --verbose
publish:
echo
if [ "$(PROFILE)" != "qa" -a "$(FORCE)" = "" ] ; then \
echo ; \
/bin/echo -n "CONFIRM: about to publish \"$(PROFILE)\": " ; read x ; \
fi
sls deploy -s $(PROFILE) --verbose -r $(AWS_REGION)
promote: build publish
debug:
# echo export SLS_DEBUG=* && node --debug ./node_modules/.bin/serverless offline --httpPort 5000 --lambdaPort 5001 -s dev
code .
run:
echo sls offline --httpPort 4000 --lambdaPort 4002 --noAuth -s dev
sls offline --httpPort 4000 --lambdaPort 4002 --noAuth -s dev