Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Tke
Commits
e783e10b
Unverified
Commit
e783e10b
authored
4 years ago
by
jo-hnny
Committed by
GitHub
4 years ago
Browse files
Options
Download
Email Patches
Plain Diff
feat(doc): add replace service web static file doc (#1223)
parent
7ab9db8b
master
dev-api-1.19.7
fix-dev
github_env_test
industry-cloud-1.9
release-1.7
release-1.8
release-1.9
revert-1247-add-registered-cluster
revert-1394-feat/enable-container-runtime
revert-1751-ingress-version
support-cilium
test
v1.9.0
v1.8.1
v1.8.0
v1.7.1
v1.7.0
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
web/console/README.md
+10
-1
web/console/README.md
with
10 additions
and
1 deletion
+10
-1
web/console/README.md
+
10
-
1
View file @
e783e10b
...
...
@@ -27,4 +27,13 @@ w2 start
-
业务管理:
`npm run dev_project`
2.
进入已部署好的tke-stack控制台页面
3.
`SwitchyOmega`
选择情景模式为
`whistle`
4.
刷新页面,检查项目运行前端页面是否已是本地开发修改过后的页面,简单的方法就是F12查看react-devtool中的componnets中的组件名称是否已经变为组件真实名称
\ No newline at end of file
4.
刷新页面,检查项目运行前端页面是否已是本地开发修改过后的页面,简单的方法就是F12查看react-devtool中的componnets中的组件名称是否已经变为组件真实名称
## 快速替换运服务器端的静态文件
主要是为了快速查看前端控制台的改动,而不用把整个项目完整build部署一次
1.
`npm run build`
打包项目;
2.
将
`build/static/js/index2.js`
和
`build/static/js/project.js`
ftp 传输到 global节点所在的机器上;
3.
以下命令均在global节点所在机器上执行;
4.
执行
`kubectl get po -n tke |grep gateway`
找到gateway的名称,自行替换下方命令gateway名称;
5.
执行
`kubectl cp index2.js tke-gateway-gt4qd://app/assets/static/js/ -n tke`
将index2.js替换,project.js同理;
6.
回到web页面,清除缓存,然后刷新页面就可以看到本次的改动了。
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help