Commit Graph

28 Commits

Author SHA1 Message Date
Nils-Johan Gynther 0ebb39150f ci(deploy): add migration control and deployment improvements
Test Suite / backend-pr-quick (push) Has been skipped
Test Suite / quick-import-pr-quick (push) Has been skipped
Test Suite / backend-full (push) Successful in 2m11s
Test Suite / flutter-quality (push) Failing after 1m20s
- Add SKIP_MIGRATION environment variable to control automatic Prisma migrations in backend
- Update Dockerfile to conditionally run migrations based on SKIP_MIGRATION flag
- Enhance deploy.sh with:
  - Better error handling using set -euo pipefail
  - New --skip-migration flag to bypass automatic migration startup
  - Improved documentation and help text
  - New helper functions for waiting on services and database
  - Better status reporting for migration results
- Update compose.yml to include SKIP_MIGRATION environment variable
2026-05-21 14:13:54 +02:00
Nils-Johan Gynther a164b42bdc feat: update Dockerfile to ensure prisma directory is copied correctly and remove unnecessary .prisma copy
Test Suite / test (24.15.0) (push) Has been cancelled
2026-05-04 21:09:53 +02:00
Nils-Johan Gynther 8d7f01a4ad feat: add missing .prisma directory copy in Dockerfile for proper deployment
Test Suite / test (24.15.0) (push) Has been cancelled
2026-05-04 21:08:17 +02:00
Nils-Johan Gynther 293fe34710 feat: remove unnecessary prisma generate command from Dockerfile
Test Suite / test (24.15.0) (push) Has been cancelled
2026-05-04 21:03:45 +02:00
Nils-Johan Gynther 5f176ce75f feat: update Dockerfile stages for improved dependency management; add prisma to package.json and package-lock.json
Test Suite / test (24.15.0) (push) Has been cancelled
2026-05-04 21:02:15 +02:00
Nils-Johan Gynther dd74d8b7eb feat(docker): update Node.js version to 24.15.0 in Dockerfile and test workflow 2026-05-03 21:48:25 +02:00
Nils-Johan Gynther 8b12df4aa4 feat: update NEXT_STEPS.md with unit test details and add npm test to Dockerfile 2026-04-16 19:30:01 +02:00
Nils-Johan Gynther 2932e58531 fix: nedgradera Prisma till 6.12.0, Prisma 7 kräver driver adapters för MySQL 2026-04-15 21:20:35 +02:00
Nils-Johan Gynther 3bfd7640cb fix: remove global npm installation from Dockerfiles 2026-04-15 21:08:07 +02:00
Nils-Johan Gynther 67aa89ba7e chore: add npm install command in Dockerfiles for both backend and frontend 2026-04-15 21:05:22 +02:00
Nils-Johan Gynther 5d80dfef6f fix: update PrismaService constructor to use correct datasource format and include prisma.config.ts in Dockerfile 2026-04-15 21:01:49 +02:00
Nils-Johan Gynther c9ef587eb1 feat: add Prisma configuration file and update Dockerfile to include it 2026-04-15 20:53:45 +02:00
Nils-Johan Gynther 2e7c849687 fix: update Dockerfile CMD to retry Prisma migration on failure 2026-04-15 20:15:08 +02:00
Nils-Johan Gynther 73bf5193c4 feat: add image handling to recipes
- Implemented image downloading and optimization in QuickImportService.
- Added imageUrl field to CreateRecipeDto for recipe creation.
- Created an endpoint in RecipesController to update recipe images.
- Enhanced RecipesService to handle image URL updates and optimizations.
- Updated Docker Compose to mount a volume for recipe images.
- Refactored frontend to display images in recipe grids and detail views.
- Added a new utility function for downloading and optimizing images.
- Created a new API route for handling image uploads.
- Introduced RecipeGrid component for better recipe display.
- Updated RecipeDetailClient to manage image updates and display.
- Added migration for new imageUrl column in the Recipe table.
2026-04-15 19:46:50 +02:00
Nils-Johan Gynther a118a2ff11 chore: Update Dockerfile paths and add .dockerignore files for backend and frontend 2026-04-14 22:35:10 +02:00
Nils-Johan Gynther f84ee39197 refactor: Simplify Dockerfile by removing recipe-document-converter build stage and update package.json to remove its dependency 2026-04-12 08:15:55 +02:00
Nils-Johan Gynther 730168d237 refactor: Update Dockerfile to copy built recipe-document-converter for proper dependency resolution 2026-04-12 08:06:50 +02:00
Nils-Johan Gynther ddfb126b98 refactor: Adjust Dockerfile to copy recipe-document-converter before npm install for proper dependency resolution 2026-04-12 07:59:28 +02:00
Nils-Johan Gynther d3997348a8 Remove debug verification step for recipe-document-converter from Dockerfile 2026-04-11 16:49:14 +02:00
Nils-Johan Gynther 343416a28d Refactor Dockerfile to adjust installation order of recipe-document-converter for improved build reliability 2026-04-11 16:30:09 +02:00
Nils-Johan Gynther 4f6d0b0687 Refactor Dockerfile and package.json to remove file dependency on recipe-document-converter for cleaner npm install process 2026-04-11 16:20:46 +02:00
Nils-Johan Gynther f95cc007d7 Remove package-lock.json copy from Dockerfile to streamline build process 2026-04-11 16:12:27 +02:00
Nils-Johan Gynther 7dfe5feaa0 Refactor Dockerfile to streamline backend build process by consolidating stages and improving dependency management 2026-04-11 16:09:50 +02:00
Nils-Johan Gynther 14099ab5bf Refactor Dockerfile to simplify installation by removing symlink references and directly copying recipe-document-converter 2026-04-11 16:02:43 +02:00
Nils-Johan Gynther d25c7c22b1 Refactor Dockerfile to eliminate symlink issues by directly copying recipe-document-converter to node_modules 2026-04-11 15:53:36 +02:00
Nils-Johan Gynther cff299b6e8 Enhance recipe service by importing ParsedIngredient and updating ingredient mapping for type safety 2026-04-11 15:49:26 +02:00
Nils-Johan Gynther 5448da1b98 New import in version 0.1 2026-04-11 15:38:24 +02:00
nilsjohan 962f4e4be5 Recipe-app main 2026-04-09 09:14:39 +02:00