Skip to content

Commit

Permalink
Use database url
Browse files Browse the repository at this point in the history
  • Loading branch information
kylerchin committed Apr 1, 2024
1 parent ac0ec59 commit dcdf880
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/birch/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ async fn main() -> std::io::Result<()> {

let sqlx_pool: Arc<sqlx::Pool<sqlx::Postgres>> = 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.
Expand Down

0 comments on commit dcdf880

Please sign in to comment.