diff --git a/src/birch/server.rs b/src/birch/server.rs index a04e0451..d939e7e1 100644 --- a/src/birch/server.rs +++ b/src/birch/server.rs @@ -378,7 +378,7 @@ async fn main() -> std::io::Result<()> { let sqlx_pool: Arc> = Arc::new(PgPoolOptions::new() .max_connections(5) - .connect("postgres://postgres:welcome@localhost/postgres") + .connect(std::env::var("DATABASE_URL").unwrap().as_str()) .await.unwrap()); // Create a new HTTP server.