接口地址只能在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多了一个:
去掉那个:也不行
现在能登录进去,但是点击里面的菜单都打不开
麻烦你了,我是在线等,
你打开浏览器的network那一栏看一下
那这样我也不知道了
还有个问题咨询一下,下图是我build后的文件,
find /usr/share/nginx/html -name " .js” | xargs sed -i “s localhost:8080 10.0.0.131:8080 g” 这种脚本是只更改根目录下的.js文件,还是会把chunks文件夹中的.js文件也给修改了?
所有都会改
执行parent-enterpoint.sh报错:
sed:-e 表达式 #1,字符 29:“s”的未知选项
以下是我的配置:
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:8060g”
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”
请问哪里有问题吗?
你好,能帮忙解决一下这个问题吗?
你的引号都是中文引号
不是,都是英文的。
菜单404那个问题能否帮忙解决一下?
你先确认一下总前端的子模块都有内容
总前端在build的时候需要改某些配置文件吗?还是直接build就可以?
总前端build的时候,子模块需要先npm install吗?