Open yooshijie opened 3 years ago
我也遇到这个问题,是通过修改index.html页面解决的; 1.复制容器里的index页面到宿主机 sudo docker cp frontend的容器id:/usr/local/openresty/nginx/html/index.html /home 2.修改<script src=“config.js........”
3.再复制index.html到容器里 sudo docker cp /home/index.html frontend的容器id:/usr/local/openresty/nginx/html/
修改一下配置文件: hack/docker-compose/conf/config.js: URL: 'http://x.x.x.x:8080',
报以上错误,尝试了修改config.js。依然无法解决,还请红衣教主帮忙解决。尝试了以下修改。 ################################################################## [root@dh-k8s-master conf]# pwd /opt/wayne/wayne/hack/docker-compose/conf [root@dh-k8s-master conf]# ls app.conf config.js [root@dh-k8s-master conf]# cat config.js window.CONFIG = { URL: 'http://**192.168.109.5**:8080', RAVEN: false, RAVEN_DSN: 'RAVEN_DSN' }; [root@dh-k8s-master conf]# ################################################################## [root@dh-k8s-master kubernetes]# pwd /opt/wayne/wayne/hack/kubernetes [root@dh-k8s-master kubernetes]# cat wayne-frontend.yaml apiVersion: v1 kind: ConfigMap metadata: labels: app: wayne-frontend name: wayne-frontend namespace: default data: config.js: |- window.CONFIG = { URL: 'http://**192.168.109.5**:32001', RAVEN: false, RAVEN_DSN: 'RAVEN_DSN' };
##################################################################
请各位高手大神指点。