浏览代码

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

bubble
Udit Desai 6 年前
committed by kyle
父节点
当前提交
a037c7205b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      docker-run.sh

+ 1
- 1
docker-run.sh 查看文件

@@ -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


正在加载...
取消
保存