Skip to content

Commit a890fc7

Browse files
Update dist
1 parent 3c23ae6 commit a890fc7

File tree

113 files changed

+132
-87
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+132
-87
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ db.sqlite3-wal
1414

1515
.DS_Store
1616
._.DS_Store
17-
.moment
17+
.moment
18+
data

README.md

Lines changed: 38 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,61 @@
33
## 简介
44

55
- 移植自[TimePlus](https://github.com/zhheo/TimePlus)[time](https://github.com/wclk/time)的相册博客主题
6-
- 脱离Typecho和Mysql,基于[vue-fastapi-admin](https://github.com/mizhexiaoxiao/vue-fastapi-admin)使用Vue+FastAPI开发
6+
- 脱离 Typecho 和 Mysql,基于[vue-fastapi-admin](https://github.com/mizhexiaoxiao/vue-fastapi-admin)使用 Vue+FastAPI 开发
77
- 随意发布你的图片、分类、地点
8-
- 高程度自定义你的网站,自由管理网站Meta、内容设置、菜单设置
9-
- 快捷发布所见所闻,支持将图片上传至符合S3标准的存储桶中
8+
- 高程度自定义你的网站,自由管理网站 Meta、内容设置、菜单设置
9+
- 快捷发布所见所闻,支持将图片上传至符合 S3 标准的存储桶中
1010
- 预览在线效果:[时刻](https://moment.cloudchewie.com/)
1111

1212
## 部署
1313

14-
- 使用Docker-compose部署
14+
- 使用 Docker-compose 部署
1515

1616
```yaml
1717
services:
1818
moment:
19-
image: ruida/moment:1.3
19+
image: ruida/moment:2.0
2020
container_name: moment
2121
volumes:
22-
- ${PWD}/.moment/:/opt/moment/app/data
22+
- .moment:/app/data
2323
ports:
24-
- 9999:80
24+
- 9999:9999
2525
```
2626
27+
## 迁移指南
28+
29+
### 从 v1.x 迁移至 v2.x
30+
31+
1. 为避免迁移失败,请**务必备份**你在 v1.x 版本的数据(容器内的`/opt/moment/app/data`目录)
32+
2. 将你的数据目录(如.moment)挂载到 v2.x 版本的容器中(容器内的`/app/data`目录)
33+
3. 运行 v2.x 版本的容器
34+
4. 查看容器日志,确认是否有迁移错误(容器迁移日志示例如下)
35+
36+
```plaintext
37+
2025-06-27 23:52:39 - Moment - INFO - 正在初始化应用...
38+
2025-06-27 23:52:39 - Moment - INFO - 执行迁移: migrations_001.py for ./migrations/migrations_001.py
39+
开始数据库迁移...
40+
BlogImage表不存在,开始创建...
41+
表结构创建完成
42+
检测到 44 篇博客但没有图片记录,开始迁移...
43+
✅ 已为博客 '测试' (ID: 1) 创建图片记录
44+
✅ 已为博客 '咳咳' (ID: 2) 创建图片记录
45+
...
46+
✅ 已为博客 '小桥' (ID: 12) 创建图片记录
47+
开始删除Blog表中的image字段...
48+
image字段已删除
49+
迁移完成
50+
2025-06-28 22:48:26 - Moment - INFO - 迁移完成: migrations_001.py
51+
2025-06-27 23:52:39 - Moment - INFO - 应用初始化完成
52+
```
53+
54+
1. 如果没有错误,访问`<服务器IP地址>:9999/admin/workbench`
55+
> 如果迁移过程中出现错误,请提交 Issue,附上容器运行日志
56+
2757
## 使用指南
2858

2959
- 使用`<服务器IP地址>:9999`或`域名`访问相册
30-
- 使用`<服务器IP地址>:9999/admin`或`<域名>/admin`访问后台管理
60+
- 使用`<服务器IP地址>:9999/admin/workbench`或`<域名>/admin/workbench`访问后台管理
3161
- 其他指南见[Wiki](https://github.com/Robert-Stackflow/Moment/wiki)
3262

3363
## 演示

dist/assets/403-72f3a8dc.js.gz

-18.1 KB
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/assets/403-c141866b.js.gz

18.1 KB
Binary file not shown.

dist/assets/404-690cc729.js.gz

-22.1 KB
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/assets/404-caf83e6a.js.gz

22.1 KB
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)