improve(docker-image): symlink swagger.json from app directory to nginx (#4024)
This commit is contained in:
@@ -36,7 +36,7 @@ if [ "$OAUTH_ADDITIONAL_PARAMS" != "**None**" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -f $SWAGGER_JSON ]]; then
|
if [[ -f $SWAGGER_JSON ]]; then
|
||||||
cp $SWAGGER_JSON $NGINX_ROOT
|
cp -s $SWAGGER_JSON $NGINX_ROOT
|
||||||
REL_PATH="./$(basename $SWAGGER_JSON)"
|
REL_PATH="./$(basename $SWAGGER_JSON)"
|
||||||
sed -i "s|http://petstore.swagger.io/v2/swagger.json|$REL_PATH|g" $INDEX_FILE
|
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
|
sed -i "s|http://example.com/api|$REL_PATH|g" $INDEX_FILE
|
||||||
|
|||||||
Reference in New Issue
Block a user