- S3の'Static Website Hosting'を有効にする
- 'Edit Redirection Rules'を編集する
- 'bucket policy'を編集する
- CLoudFrontのOriginにS3の'Static Website Hosting'のEndpointを指定する
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM golang:1.9-alpine as base | |
WORKDIR /usr/src | |
COPY . . | |
RUN apk add git | |
RUN CGO_ENABLED=0 go get -d -ldflags "-s -w" . | |
RUN CGO_ENABLED=0 go build -ldflags "-s -w" -o main | |
FROM scratch | |
COPY --from=base /usr/src/main /go-http-microservice | |
CMD ["/go-http-microservice"] |
##GitHubとHerokuに両対応させるには
-
herokuでapp:create
$ heroku apps:create p120902-jishiha-search Creating p120905-rss-process-test... done, stack is cedar http://p120905-rss-process-test.herokuapp.com/ | git@heroku.com:p120905-rss-process-test.git
-
$ git clone https://github.com/weed/p120902-jishiha-search.git
-
作業