CHANGED extract nginx.conf.template from project

This commit is contained in:
Assaf Arkin authored and Jose Diaz-Gonzalez committed 2015-07-11 15:05:06 -04:00
1 parent e985d18454
commit 71b79da262
1 file changed
+3
+3
View File
@@ -49,6 +49,9 @@ case "$1" in
shopt -u nullglob
fi
DOKKU_APP_CONTAINER_ID=$(< "$DOKKU_ROOT/$APP/CONTAINER")
docker cp "$DOKKU_APP_CONTAINER_ID:/app/nginx.conf" "$APP_NGINX_TEMPLATE" 2> /dev/null || true
[[ -f "$DOKKU_ROOT/ENV" ]] && source $DOKKU_ROOT/ENV
[[ -f "$DOKKU_ROOT/$APP/ENV" ]] && source $DOKKU_ROOT/$APP/ENV
[[ -f "$APP_NGINX_TEMPLATE" ]] && NGINX_TEMPLATE="$APP_NGINX_TEMPLATE" && NGINX_CUSTOM_TEMPLATE="true" && dokku_log_info1 'Overriding default nginx.conf with detected nginx.conf.template'