diff --git a/.ebextensions/removenginx.config b/.ebextensions/removenginx.config new file mode 100644 index 00000000..fc5e0bdc --- /dev/null +++ b/.ebextensions/removenginx.config @@ -0,0 +1,3 @@ +container_commands: + removeconfig: + command: "rm -f /tmp/deployment/config/#etc#nginx#conf.d#00_elastic_beanstalk_proxy.conf /etc/nginx/conf.d/00_elastic_beanstalk_proxy.conf" \ No newline at end of file diff --git a/.platform/hooks/postdeploy/99_kill_default_nginx.sh b/.platform/hooks/postdeploy/99_kill_default_nginx.sh new file mode 100644 index 00000000..e90fd819 --- /dev/null +++ b/.platform/hooks/postdeploy/99_kill_default_nginx.sh @@ -0,0 +1,4 @@ +#!/bin/bash -xe +rm -f /etc/nginx/conf.d/00_elastic_beanstalk_proxy.conf +service nginx stop +service nginx start \ No newline at end of file