From da467fe3b69940a811abb63ba59486b3eb4724d9 Mon Sep 17 00:00:00 2001 From: steve-chavez Date: Tue, 27 May 2025 20:12:00 -0500 Subject: [PATCH] nix: add PGRST_ADMIN_SERVER_PORT to postgrest-run It's frequently needed during manual testing. --- nix/tools/cabalTools.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nix/tools/cabalTools.nix b/nix/tools/cabalTools.nix index 17954d0a2..042c02fcc 100644 --- a/nix/tools/cabalTools.nix +++ b/nix/tools/cabalTools.nix @@ -45,6 +45,7 @@ let "ARG_USE_ENV([PGRST_DB_POOL], [1], [PostgREST pool size])" "ARG_USE_ENV([PGRST_DB_POOL_ACQUISITION_TIMEOUT], [1], [PostgREST pool timeout])" "ARG_USE_ENV([PGRST_JWT_SECRET], [reallyreallyreallyreallyverysafe], [PostgREST JWT secret])" + "ARG_USE_ENV([PGRST_ADMIN_SERVER_PORT], [3001], [PostgREST admin server port])" "ARG_LEFTOVERS([PostgREST arguments])" ]; workingDir = "/"; @@ -55,6 +56,7 @@ let export PGRST_DB_POOL export PGRST_DB_POOL_ACQUISITION_TIMEOUT export PGRST_JWT_SECRET + export PGRST_ADMIN_SERVER_PORT exec ${cabal-install}/bin/cabal v2-run ${devCabalOptions} --verbose=0 -- \ postgrest "''${_arg_leftovers[@]}"