try to fix env var

This commit is contained in:
dullbananas 2024-05-23 14:11:58 -07:00 committed by GitHub
parent 1a7189787d
commit d57d29392e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -21,7 +21,7 @@ pub fn get_dump() -> String {
"--no-table-access-method",
"--no-tablespaces",
])
.env("DATABASE_URL", SETTINGS.get_database_url())
.env("PGDATABASE", SETTINGS.get_database_url())
.stderr(Stdio::inherit())
.output()
.expect("failed to start pg_dump process");