From c9e88e2f7ab8a1dcfbf536f47ef6afc2dc20c873 Mon Sep 17 00:00:00 2001 From: "hong.yang" Date: Thu, 12 Oct 2023 17:06:12 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E4=BC=98=E5=8C=96docker=E6=89=93?= =?UTF-8?q?=E5=8C=85=E7=9A=84=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 优化docker打包的配置文件 --- doc/docker/application-docker.yml | 5 +++-- doc/docker/index-production.js | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/doc/docker/application-docker.yml b/doc/docker/application-docker.yml index c4d85eb3..c8de8e54 100644 --- a/doc/docker/application-docker.yml +++ b/doc/docker/application-docker.yml @@ -3,8 +3,9 @@ server: servlet: context-path: spring: - resources: - static-locations: classpath:/static/,classpath:/META-INF/resources/,classpath:/META-INF/resources/webjars/,file:${gc.starter.file.basePath},file:${gc.starter.file.uiPath} + web: + resources: + static-locations: classpath:/static/,classpath:/META-INF/resources/,classpath:/META-INF/resources/webjars/,file:${gc.starter.file.basePath},file:${gc.starter.file.uiPath} mvc: throw-exception-if-no-handler-found: true # 静态资源访问接口前缀 diff --git a/doc/docker/index-production.js b/doc/docker/index-production.js index ee99898b..1ec0aa1a 100644 --- a/doc/docker/index-production.js +++ b/doc/docker/index-production.js @@ -1,6 +1,7 @@ window.ENV = 'production' var productionConfig = { - baseUrl: getIpPort() + baseUrl: getIpPort(), + fileUrlPrefix: getIpPort() + '/dataroom', } // 必须的 window.CONFIG = configDeepMerge(window.CONFIG, productionConfig)