Skip to content
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

[Docker 部署 ] docker如何修改文件,我用SH进入修改../themes/heo/conflg.js文件以后重启没有作用 #2978

Open
huanghua7584 opened this issue Nov 15, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@huanghua7584
Copy link

我用ssh链接工具链接上了我的云服务器,到docker目录下/var/lib/docker/overlay2/l/62D2TTIEHMO3W4MBJ2NR4XE3QD/app/themes/heo/conflg.js修改过了conflg.js里面的参数没有生效

*docker启动命令
docker run -d -p 3000:3000 --name notionnext-container -e NOTION_PAGE_ID=13dfd37cee2980f892bfdc2f4d145543 ghcr.io/tangly1024/notionnext:main

修改内容如下
// 英雄区显示三个置顶分类
HEO_HERO_CATEGORY_1: { title: '1111', url: '/tag/必看精选' },
HEO_HERO_CATEGORY_2: { title: '2222', url: '/tag/热门文章' },
HEO_HERO_CATEGORY_3: { title: '3333', url: '/tag/实用教程' },

修改后重启命令:docker restart notionnext-container

网站截图:
未生效截图

环境

  • 操作系统: Ubuntu 22.04 64位
  • 浏览器 :chrome
  • 版本:NotionNext 4.7.7
@tangly1024 tangly1024 added the enhancement New feature or request label Nov 15, 2024
@tangly1024
Copy link
Owner

修改代码后需要重新打包和编译才能生效,建议 在NOTION_CONFIG中直接修改配置,而非修改代码

@tangly1024 tangly1024 added the help wanted Extra attention is needed label Nov 15, 2024
@huanghua7584
Copy link
Author

修改代码重新分配并编译才能生效后,建议在NOTION_CONFIG中直接修改配置,而不是代码

好的,谢谢大佬!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants