将 backend/upload 排除出 git
管理端上传的纹理/模型/图标和用户头像属于运行时数据:服务器上运行时读的是 bind mount 的 /opt/cosmo/data/upload,仓库里这份不会被访问,却占了 47MB。现在整体 不再跟踪,本地工作区的文件原样保留。 注意: - 种子资源从此不再随 git 分发。新环境部署要把初始纹理/模型/图标导入 /opt/cosmo/data/upload,否则前台取不到图。 - 其他机器 git pull 后会删掉它们工作区里的 backend/upload,运行时不受影响。 - 只影响后续提交,47MB 仍留在 git 历史里。main
|
|
@ -1,6 +1,10 @@
|
|||
# Resources
|
||||
资源文件/
|
||||
|
||||
# 运行时上传目录:管理端上传的纹理/模型/图标、用户头像等,不随 git 分发
|
||||
# (服务器上运行时读的是 bind mount 的 /opt/cosmo/data/upload)
|
||||
/backend/upload/
|
||||
|
||||
# OS files
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 139 KiB |
|
Before Width: | Height: | Size: 28 KiB |
|
Before Width: | Height: | Size: 135 KiB |
|
Before Width: | Height: | Size: 194 KiB |
|
Before Width: | Height: | Size: 433 KiB |
|
Before Width: | Height: | Size: 461 KiB |
|
Before Width: | Height: | Size: 432 KiB |
|
Before Width: | Height: | Size: 1.1 MiB |
|
Before Width: | Height: | Size: 452 KiB |
|
Before Width: | Height: | Size: 249 KiB |
|
Before Width: | Height: | Size: 1.0 MiB |
|
Before Width: | Height: | Size: 879 KiB |
|
Before Width: | Height: | Size: 487 KiB |
|
Before Width: | Height: | Size: 1.1 MiB |
|
Before Width: | Height: | Size: 733 KiB |
|
Before Width: | Height: | Size: 852 KiB |
|
Before Width: | Height: | Size: 1.0 MiB |
|
Before Width: | Height: | Size: 236 KiB |
|
Before Width: | Height: | Size: 3.8 MiB |
|
Before Width: | Height: | Size: 195 KiB |
|
Before Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 246 KiB |
|
Before Width: | Height: | Size: 803 KiB |
|
Before Width: | Height: | Size: 76 KiB |
|
Before Width: | Height: | Size: 224 KiB |
|
Before Width: | Height: | Size: 864 KiB |
|
Before Width: | Height: | Size: 432 KiB |
|
Before Width: | Height: | Size: 333 KiB |
|
Before Width: | Height: | Size: 134 KiB |
|
Before Width: | Height: | Size: 246 KiB |
|
Before Width: | Height: | Size: 201 KiB |
|
Before Width: | Height: | Size: 360 KiB |
|
Before Width: | Height: | Size: 997 KiB |
|
Before Width: | Height: | Size: 1.3 MiB |
|
Before Width: | Height: | Size: 142 KiB |
|
Before Width: | Height: | Size: 302 KiB |
|
Before Width: | Height: | Size: 85 KiB |
|
Before Width: | Height: | Size: 221 KiB |
|
Before Width: | Height: | Size: 1.8 MiB |