Skip to content

Commit 429601d

Browse files
committed
nginx sps fallback
1 parent d30705e commit 429601d

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ RUN apk update && \
99
apk add --no-cache $RUBY_PACKAGES && \
1010
apk del .build-dependencies
1111

12+
COPY docker/default.conf /etc/nginx/conf.d
13+
1214
ADD dist /usr/share/nginx/html
1315

1416
WORKDIR /tmp

docker/default.conf

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
server {
2+
listen 80;
3+
4+
root /usr/share/nginx/html;
5+
6+
location ~ \.(js|css)$ {
7+
}
8+
9+
location / {
10+
rewrite (.*) /index.html break;
11+
}
12+
}

scripts/deploy.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ docker build -t ${DOCKER_NAME} .
1616
docker tag ${DOCKER_NAME}:latest ${AWS_ACCOUNT_NUMBER}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com/${DOCKER_NAME}:latest
1717
docker push ${AWS_ACCOUNT_NUMBER}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com/${DOCKER_NAME}:latest
1818

19-
#aws sns publish --topic-arn "arn:aws:sns:${AWS_DEFAULT_REGION}:${AWS_ACCOUNT_NUMBER}:backend_app_updated" \
20-
# --message "${ENV}: ${TRAVIS_COMMIT}"
19+
aws sns publish --topic-arn "arn:aws:sns:${AWS_DEFAULT_REGION}:${AWS_ACCOUNT_NUMBER}:frontend_app_updated" \
20+
--message "${ENV}: ${TRAVIS_COMMIT}"

0 commit comments

Comments
 (0)