Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修改前端页面样式不生效 #57

Closed
lainbo opened this issue Feb 24, 2024 · 2 comments
Closed

修改前端页面样式不生效 #57

lainbo opened this issue Feb 24, 2024 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@lainbo
Copy link

lainbo commented Feb 24, 2024

出现的问题
修改template/index.html中的前端样式后, 重启docker, 前端页面依旧保持原样, 并没有我做的改动

复现步骤

  1. 先git clone仓库, 配置.env.local, 其余什么都不改, 使用docker-compose up -d直接运行
  2. 修改template/index.html
  3. 使用docker-compose down && docker-compose up -d重启项目
  4. 发现页面依旧是最开始clone下来的样子, 并没有第2步做的修改

额外的补充
还试验过完全删除文件夹, 重新clone等方法, 总之21001端口上的页面只会停留在第一次docker启动的时候, 后面的怎么改index.html都不会变

@vvbbnn00 vvbbnn00 added the help wanted Extra attention is needed label Feb 24, 2024
@vvbbnn00
Copy link
Owner

你好,这是因为您在修改页面后没有重新编译docker镜像导致的,您可以尝试docker-compose up -d --build来解决该问题。

@lainbo
Copy link
Author

lainbo commented Feb 24, 2024

非常感谢~

@lainbo lainbo closed this as completed Feb 24, 2024
Repository owner locked and limited conversation to collaborators Feb 28, 2024
@vvbbnn00 vvbbnn00 converted this issue into discussion #96 Feb 28, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants