fix: eprintln for Docker logs, include migrations in stub build

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-29 19:42:44 +02:00
parent 69e8384598
commit 3a2f414e47
2 changed files with 7 additions and 4 deletions

View File

@@ -17,19 +17,21 @@ async fn main() {
.await
.expect("Failed to connect to database");
eprintln!("colony: connected to {}", db_url);
// Enable WAL mode
sqlx::query("PRAGMA journal_mode=WAL")
.execute(&pool)
.await
.unwrap();
// Run migrations using sqlx's proper migration system
// Run embedded migrations
sqlx::migrate!("./migrations")
.run(&pool)
.await
.expect("Failed to run migrations");
println!("Colony running on port {}", port);
eprintln!("colony: migrations done, starting on port {}", port);
let app = Router::new()
.route("/api/health", get(routes::health))