浏览代码

docs: 优化docker打包的配置文件

优化docker打包的配置文件
hong.yang 1 年之前
父节点
当前提交
c9e88e2f7a
共有 2 个文件被更改,包括 5 次插入3 次删除
  1. 3 2
      doc/docker/application-docker.yml
  2. 2 1
      doc/docker/index-production.js

+ 3 - 2
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
     # 静态资源访问接口前缀

+ 2 - 1
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)