parent-enterpoint.sh配置问题


#1

请问以下变量应该如何配置?

$PRO_WEBSOCKET_SERVER
$PRO_COOKIE_SERVER


#2

export PRO_WEBSOCKET_SERVER


#3

不好意思,我是想问上面那两个配置是什么意思?


#4

#5

你好,没看到官方有以下这两个服务的部署说明
$PRO_WEBSOCKET_SERVER
$PRO_COOKIE_SERVER

websocket 地址,这个地址没搞明白是什么?


#6

用于配置前端消息通知的ws 域名


#7

那这个域名是需要填notify service这个服务的地址是吗?


#8

对的


#9

$PRO_COOKIE_SERVER 这个变量应该填哪个服务的地址?


#10

find /usr/share/nginx/html -name ‘.js’ | xargs sed -i “s localhost:http $PRO_HTTP g”
find /usr/share/nginx/html -name '
.js’ | xargs sed -i “s localhost:8080 $PRO_API_HOST g”
find /usr/share/nginx/html -name ‘.js’ | xargs sed -i “s localhost:clientId $PRO_CLIENT_ID g”
find /usr/share/nginx/html -name '
.js’ | xargs sed -i “s localhost:local $PRO_LOCAL g”
find /usr/share/nginx/html -name ‘.js’ | xargs sed -i “s localhost:headertitlename $PRO_HEADER_TITLE_NAME g”
find /usr/share/nginx/html -name '
.js’ | xargs sed -i “s localhost:cookieServer $PRO_COOKIE_SERVER g”
find /usr/share/nginx/html -name ‘.html’ | xargs sed -i “s localhost:titlename $PRO_TITLE_NAME g”
find /usr/share/nginx/html -name '
.js’ | xargs sed -i “s POD_WEBSOCKET_URL $PRO_DEVOPS_HOST g”
find /usr/share/nginx/html -name ‘.js’ | xargs sed -i “s SERVICES_URL_EXAMPLE $PRO_AGILE_HOST g”
find /usr/share/nginx/html -name '
.js’ | xargs sed -i “s localhost:fileserver $PRO_FILE_SERVER g”
find /usr/share/nginx/html -name ‘*.js’ | xargs sed -i “s localhost:wsserver $PRO_WEBSOCKET_SERVER g”

执行enterpoint.sh报错如下:

sed:-e 表达式 #1,字符 29:“s”的未知选项


#11

以下是我的配置:

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 http://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 http://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 http://10.0.0.142:8060 g”
find /usr/share/nginx/html -name “.js" | xargs sed -i “s SERVICES_URL_EXAMPLE http://10.0.0.142:8378 g”
find /usr/share/nginx/html -name "
.js” | xargs sed -i “s localhost:fileserver http://10.0.0.131:9099 g”
find /usr/share/nginx/html -name “*.js” | xargs sed -i “s localhost:wsserver http://10.0.0.131:18085 g”


#12

前端页面的域名