Skip to content

Commit

Permalink
oopsie
Browse files Browse the repository at this point in the history
  • Loading branch information
amiller68 committed Jan 26, 2024
1 parent 1d6d367 commit 9cae4e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ impl AppState {
#[shuttle_runtime::main]
async fn main(
#[shuttle_shared_db::Postgres(
local_uri = &std::env::var("DATABASE_URL").expect("DATABASE_URL must be set")
local_uri = &std::env::var("DATABASE_URL").unwrap_or_else(|_| "postgres://localhost:5432".to_string()),
)]
db: PgPool,
) -> shuttle_axum::ShuttleAxum {
Expand Down

0 comments on commit 9cae4e6

Please sign in to comment.