Use environment variables for configuration in developer tooling
Avoid the need for configuration files for temporary database connections.
This commit is contained in:
committed by
Wolfgang Walther
parent
add326a79d
commit
69b459e7b6
+1
-1
@@ -57,7 +57,7 @@ main :: IO ()
|
||||
main = do
|
||||
getTime <- mkAutoUpdate defaultUpdateSettings { updateAction = getCurrentTime }
|
||||
|
||||
testDbConn <- getEnvVarWithDefault "POSTGREST_TEST_CONNECTION" "postgres://postgrest_test@localhost/postgrest_test"
|
||||
testDbConn <- getEnvVarWithDefault "PGRST_DB_URI" "postgres://postgrest_test@localhost/postgrest_test"
|
||||
|
||||
pool <- P.acquire (3, 10, toS testDbConn)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user