Skip to content

Commit

Permalink
Add ebextension to replace nginx.conf.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefansundin committed Sep 1, 2018
1 parent 38f1c38 commit 5867ef7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .ebextensions/40-nginx.config
@@ -0,0 +1,6 @@
# This blog post suggests that the file will used automatically, but that is probably specific to Go and Java since it is under their sections in the docs.. A shame..
# https://aws.amazon.com/blogs/aws/elastic-beanstalk-update-support-for-java-and-go/

container_commands:
"01":
command: cmp --silent .ebextensions/nginx/nginx.conf /etc/nginx/nginx.conf || (cp .ebextensions/nginx/nginx.conf /etc/nginx/nginx.conf && service nginx restart)

0 comments on commit 5867ef7

Please sign in to comment.