Skip to content

fix: correct sqlx migration directory path for Docker builds (Closes #3) - #68

Open
ZacLou wants to merge 2 commits into
StellarRoute:mainfrom
ZacLou:feat/issue-3-sqlx-migration-path
Open

fix: correct sqlx migration directory path for Docker builds (Closes #3)#68
ZacLou wants to merge 2 commits into
StellarRoute:mainfrom
ZacLou:feat/issue-3-sqlx-migration-path

Conversation

@ZacLou

@ZacLou ZacLou commented Aug 28, 2026

Copy link
Copy Markdown

Closes #3

Changes

Fixes the sqlx::migrate!() compile-time path in both services so migrations are embedded correctly during Docker builds:

  • API: ../../migrations../migrations
  • Gateway: Same fix applied

Why

  • ../../migrations from crates/api/src/main.rs resolves to migrations/ locally but can fail in Docker build contexts
  • ../migrations uses the Cargo workspace manifest-relative path which is more reliable across build environments
  • sqlx embeds migrations at compile time; the macro path must match the filesystem during cargo build

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.

[infra] Fix sqlx migration directory path in Docker runtime

1 participant