Merge commit 'ee702e36e58d638bcf75b2eae2ca86499693465e' into glitch-soc/merge-upstream
This commit is contained in:
@@ -110,6 +110,11 @@ const pgConfigFromEnv = (env) => {
|
||||
|
||||
if (env.DATABASE_URL) {
|
||||
baseConfig = dbUrlToConfig(env.DATABASE_URL);
|
||||
|
||||
// Support overriding the database password in the connection URL
|
||||
if (!baseConfig.password && env.DB_PASS) {
|
||||
baseConfig.password = env.DB_PASS;
|
||||
}
|
||||
} else {
|
||||
baseConfig = pgConfigs[environment];
|
||||
|
||||
|
Reference in New Issue
Block a user