diff --git a/Makefile b/Makefile index ad295d1..f3541d1 100644 --- a/Makefile +++ b/Makefile @@ -34,7 +34,7 @@ test: go test ./... build: export GO111MODULE=on - env GOARCH=amd64 GOOS=linux go build -ldflags="-s -w" -o bin/cmd app/cmd/main.go + env GOARCH=amd64 GOOS=linux go build -ldflags="-s -w" -o bootstrap app/cmd/main.go deploy: build sls deploy --verbose diff --git a/serverless.yml b/serverless.yml index fa54639..6bc7a4f 100644 --- a/serverless.yml +++ b/serverless.yml @@ -6,10 +6,11 @@ provider: region: ap-northeast-1 package: - exclude: - - ./** + # exclude: + # - ./** include: - - ./bin/** + # - ./bin/** + - ./** plugins: - serverless-offline @@ -22,7 +23,7 @@ custom: functions: cmd: - handler: bin/cmd + handler: bootstrap events: - http: path: callback