From 51bdd209e4fd3b46453c85cf80eda0f34c002576 Mon Sep 17 00:00:00 2001 From: Udit Desai Date: Tue, 12 Dec 2017 03:34:27 -0800 Subject: [PATCH] Creates a symbolic link to take live changes for SWAGGER_JSON file in Docker --- docker-run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-run.sh b/docker-run.sh index 39e25f203e6..2effbb33b93 100644 --- a/docker-run.sh +++ b/docker-run.sh @@ -41,7 +41,7 @@ if [ "$OAUTH_ADDITIONAL_PARAMS" != "**None**" ]; then fi if [[ -f $SWAGGER_JSON ]]; then - cp $SWAGGER_JSON $NGINX_ROOT + cp -s $SWAGGER_JSON $NGINX_ROOT REL_PATH="./$(basename $SWAGGER_JSON)" sed -i "s|http://petstore.swagger.io/v2/swagger.json|$REL_PATH|g" $INDEX_FILE sed -i "s|http://example.com/api|$REL_PATH|g" $INDEX_FILE