wiki-service部署问题

你好,不用生成,部署时候设置xwiki的token值和wiki-service的token值一样就行了。

哦,好的

不对呀,xwiki的token值在哪里?

参考文档 http://choerodon.io/zh/docs/installation-configuration/steps/install/parts/choerodon-wiki/

问下,总前端项目打包,官方是怎么运行的?能否用tomcat启动前端项目?

在总前端装包完毕后,执行npm build命令,打包完毕后,设置对应的环境变量,之后执行docker 下的entrypoint.sh即可,建议使用nginx启动前端项目

设置对应的环境变量?环境变量指的是什么?

打包后启动报错,如下:

Uncaught SyntaxError: Unexpected token l in JSON at position 0
at JSON.parse ()
at Object. (index.60d0e22c.js:1)
at d (vendor.60d0e22c.js:1)
at Object. (index.60d0e22c.js:1)
at d (vendor.60d0e22c.js:1)
at Object. (index.60d0e22c.js:1)
at d (vendor.60d0e22c.js:1)
at Object. (index.60d0e22c.js:1)
at d (vendor.60d0e22c.js:1)
at window.webpackJsonp (vendor.60d0e22c.js:1)

环境变量就是一些前端配置,比如服务器地址,文件服务器地址等

打包后放到nginx下访问页面报错,如下:

Uncaught SyntaxError: Unexpected token l in JSON at position 0
at JSON.parse ()
at Object. (index.60d0e22c.js:1)
at d (vendor.60d0e22c.js:1)
at Object. (index.60d0e22c.js:1)
at d (vendor.60d0e22c.js:1)
at Object. (index.60d0e22c.js:1)
at d (vendor.60d0e22c.js:1)
at Object. (index.60d0e22c.js:1)
at d (vendor.60d0e22c.js:1)
at window.webpackJsonp (vendor.60d0e22c.js:1)

你好我的版本是0.16.0,没有 enterpoint.sh这个文件

0.16.0是在parent-structure文件夹下

执行这个文件需要启动docker吗

build后直接放到nginx里面启动不可以吗?

不可以直接启动,就算可以启动,没有配接口地址,也没用啊

接口地址只能在dockerfile文件里面配置是吗?

将图片中的路径和变量替换掉,再执行就可以了

总前端项目nginx启动后,登录后,所有菜单都打不开,报404

enterpoint.sh文件配置如下:

set -e

find /usr/share/nginx/html -name “ .js" | xargs sed -i “s localhost:http http: g”
find /usr/share/nginx/html -name "
.js” | xargs sed -i “s localhost:8080 10.0.0.131:8080 g”
find /usr/share/nginx/html -name “ .js" | xargs sed -i “s localhost:clientId localhost g”
find /usr/share/nginx/html -name "
.js” | xargs sed -i “s localhost:local true g”
find /usr/share/nginx/html -name “ .js" | xargs sed -i “s localhost:headertitlename Choerodon g”
find /usr/share/nginx/html -name "
.js” | xargs sed -i “s localhost:cookieServer 10.0.0.131:8080 g”
find /usr/share/nginx/html -name “ .html" | xargs sed -i “s localhost:titlename citec devops g”
find /usr/share/nginx/html -name "
.js” | xargs sed -i “s POD_WEBSOCKET_URL 10.0.0.142:8060 g”
find /usr/share/nginx/html -name “ .js" | xargs sed -i “s SERVICES_URL_EXAMPLE 10.0.0.142:8378 g”
find /usr/share/nginx/html -name "
.js” | xargs sed -i “s localhost:fileserver 10.0.0.131:9099 g”
find /usr/share/nginx/html -name “*.js” | xargs sed -i “s localhost:wsserver 10.0.0.131:18085 g”

exec “$@”

是不是哪里配置不对?

find /usr/share/nginx/html -name “ *.js" | xargs sed -i “s localhost:http http: g” http多了一个:

去掉那个:也不行