Browse Source

improve(docker-image): symlink `swagger.json` from app directory to nginx (#4024)

bubble
Udit Desai 6 years ago
committed by kyle
parent
commit
a037c7205b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      docker-run.sh

+ 1
- 1
docker-run.sh View File

@@ -36,7 +36,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


Loading…
Cancel
Save