Skip to content

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

Open
@huanghua7584

Description

@huanghua7584

我用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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requesthelp wantedExtra attention is needed

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions