【问题标题】:How to deploy Ganttlab in a path different than "/"如何在不同于“/”的路径中部署 Ganttlab
【发布时间】:2021-05-16 14:52:32
【问题描述】:

我正在本地安装 Ganttlab,我希望能够在 https://[mygitlabserver]/ganttlab/ 中使用它。配置和构建过程非常简单。但是,我注意到一些像“dist/index.html”和“dist/js/app.xxxxxx.js”这样的文件是用“/”作为默认路径构建的,导致很多302或404。

有没有办法可以在 build:webapp 之前配置此路径?

提前致谢。

【问题讨论】:

    标签: node.js gitlab yarnpkg vue-cli


    【解决方案1】:

    webapp 使用vue
    所以创建一个 vue 配置文件:packages/ganttlab-adapter-webapp/vue.config.json

    module.exports = {
        publicPath: './'
    }
    

    上面的代码将使所有路径都相对。
    根据您的设置,您还可以设置显式路径publicPath: '/ganttlab/'

    欲了解更多信息:github.com/ganttlab/ganttlab download and install

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-01-03
      • 1970-01-01
      • 2022-10-17
      • 1970-01-01
      • 2021-11-28
      • 2019-08-21
      • 1970-01-01
      • 2021-10-09
      相关资源
      最近更新 更多