Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload API Prep Part 4: Fix prod #41

Conversation

francisduvivier
Copy link
Collaborator

@francisduvivier francisduvivier commented Dec 1, 2024

This PR fixes the production docker compose setup.
The problem was that path aliases did not work and that all imports needed extensions.
The fix is by just using tsx in prodution, same like in development, but then without --watch.

In order for the migrations not to to interfere with each other when using multiple instances, I also added a db managed lock around the migrations script run. So even though we run db-migrate at startup, it's not a problem if we start up 4 processes.

@francisduvivier francisduvivier requested review from edwinm, zera1ul and pitastrudl and removed request for edwinm and zera1ul December 1, 2024 12:23
@francisduvivier francisduvivier force-pushed the feature/26-upload-api-part-3 branch from 102bf05 to 79342cb Compare December 1, 2024 12:27
@francisduvivier francisduvivier force-pushed the feature/26-upload-api-part-4_fix-prod branch from fed1bc2 to 99ef4e6 Compare December 1, 2024 12:29
Copy link

github-actions bot commented Dec 1, 2024

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 34.09% 757 / 2220
🔵 Statements 34.09% 757 / 2220
🔵 Functions 38.93% 44 / 113
🔵 Branches 82.14% 46 / 56
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/db/connectionPool.ts 66.66% 100% 50% 66.66% 25-32
src/db/migrations.ts 0% 0% 0% 0% 1-32
Generated in workflow #73 for commit 1218118 by the Vitest Coverage Report Action

@francisduvivier francisduvivier force-pushed the feature/26-upload-api-part-4_fix-prod branch from 99ef4e6 to faf95a0 Compare December 1, 2024 12:31
@francisduvivier francisduvivier changed the title Feature/26 upload api part 4 fix prod Upload API Prep Part 4: Fix prod Dec 3, 2024
@francisduvivier
Copy link
Collaborator Author

Closed because I merged it into the PR that was breaking the prod docker compose in the first place

@francisduvivier francisduvivier deleted the feature/26-upload-api-part-4_fix-prod branch December 9, 2024 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant