mirror of
https://github.com/Afilmory/afilmory
synced 2026-02-01 22:48:17 +00:00
- Introduced a comprehensive `DEVELOPMENT.md` guide for contributors and self-hosters, detailing workspace layout and common commands. - Updated `README.md` to include links to the new development guide and improved deployment instructions. - Added new documentation files covering architecture, builder pipeline, configuration, and deployment strategies. - Implemented new storage provider documentation for Backblaze B2, Eagle, GitHub, and local storage options. - Enhanced the UI components with new features, including a navigation context and improved theme handling. - Removed outdated GitHub Action deployment documentation. Signed-off-by: Innei <tukon479@gmail.com>
1.1 KiB
1.1 KiB
Deployment & Hosting
Option A: Docker (recommended)
Use the prebuilt images and guide at https://github.com/Afilmory/docker for the fastest setup.
Option B: Manual
- Prepare configs
- Copy
config.example.json→config.json, fill site info and map settings. - Copy
builder.config.default.ts→builder.config.ts, set storage provider/credentials. - Add environment variables in
.env(storage + optional repo sync).
- Build manifest and thumbnails
pnpm run build:manifest # incremental
pnpm run build:manifest -- --force # full rebuild
- Run servers
pnpm dev # SPA + SSR
pnpm --filter web dev # SPA only
- Production build
pnpm build
Storage Notes
- S3-compatible endpoints work out of the box; set
customDomainif you serve assets via CDN. - Local-only testing: set
storage.providertolocalwithbasePath/baseUrl. - GitHub/B2/Eagle providers are available—see
builder.config.default.tsfor examples.
Manifest Outputs
apps/web/public/thumbnails(generated thumbnails)apps/web/src/data/photos-manifest.json(metadata used by SPA/SSR)