Commit Graph

11 Commits

Author SHA1 Message Date
Alexander 1fa2e350d7 feat: major dependency upgrades, remove Redis, fix mongoose 9 types
Dependencies upgraded:
- svelte 5.38→5.55, @sveltejs/kit 2.37→2.56, adapter-node 5.3→5.5
- mongoose 8→9, sharp 0.33→0.34, typescript 5→6
- lucide-svelte → @lucide/svelte 1.7 (Svelte 5 native package)
- vite 7→8 with rolldown (build time 33s→14s)
- Removed terser (esbuild/oxc default minifier is 20-100x faster)

Infrastructure:
- Removed Redis/ioredis cache layer — MongoDB handles caching natively
- Deleted src/lib/server/cache.ts and all cache.get/set/invalidate usage
- Removed redis-cli from deploy workflow, Redis env vars from .env.example

Mongoose 9 migration:
- Replaced deprecated `new: true` with `returnDocument: 'after'` (16 files)
- Fixed strict query filter types for ObjectId/paymentId fields
- Fixed season param type (string→number) in recipe API
- Removed unused @ts-expect-error in WorkoutSession model
2026-04-06 12:21:26 +02:00
Alexander 17b7e1b29a remove Android CI workflow and Dockerfile
APK build and deploy is now handled by a local post-commit hook
using scripts/android-build-deploy.sh + rsync.
2026-03-24 20:25:17 +01:00
Alexander 72262adf83 fix: use rust:slim-trixie for JDK 21 and latest Rust, trim CI paths
- Switch to Debian Trixie base for native JDK 21 and latest Rust
- Remove Adoptium APT repo workaround
- Only trigger Android CI on src-tauri/ and build config changes
2026-03-24 18:48:08 +01:00
Alexander f4398ddfe8 add Android app to README, CI workflow for APK builds
- README: add Fitness section with APK download link
- Dockerfile.android: containerized build with Rust, Android SDK/NDK,
  Java 21, Node 22, pnpm — builds and signs the APK
- CI workflow: builds APK in container on push, deploys to
  bocken.org/static/Bocken.apk via SCP
2026-03-24 18:29:38 +01:00
Alexander ec02e8873e ci: clear Redis recipe cache on deploy
Ensures fresh data is fetched after deployments when API projections
or data structures change.
2026-01-29 14:04:36 +01:00
Alexander 4c49f17411 chore: update CI workflow to use pnpm instead of npm
Changed deployment workflow to use pnpm with frozen lockfile to ensure
consistent dependency installation matching local development environment.
2026-01-10 17:52:02 +01:00
Alexander cfcd913b0f fix: update deployment workflow to use dist directory
Changes deployment process to build in default 'build' directory, then safely deploy to 'dist' directory by stopping the service first, ensuring clean deployment without serving partial builds.
2026-01-02 22:12:46 +01:00
Alexander a75936fdd6 fix: correct deployment workflow to force sync with remote
Fix the deployment script to properly force the remote server to always
match the git repository state, regardless of local changes.

Changes:
- Replace invalid `git pull --force` with proper fetch and reset
- Add `git remote set-url origin` to ensure correct URL with auth token
- Use `git fetch origin` to download latest changes
- Use `git reset --hard origin/master` to force match remote state

This ensures clean deployments even if there are local modifications or
conflicts on the remote server, while preserving untracked files like .env.
2026-01-02 21:46:37 +01:00
Alexander 242868394b chore: add hard reset to deployment workflow
Ensures deployment always matches remote state by performing a hard
reset before building.
2026-01-02 18:46:42 +01:00
Alexander 6a93d56818 worker: change to new service name 2024-06-22 09:27:28 +02:00
Alexander 21d65b72e4 add action to build on push 2024-03-22 14:54:58 +01:00