Commit 3d18a98 1 parent 4545655 commit 3d18a98 Copy full SHA for 3d18a98
File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -95,16 +95,16 @@ def run(
95
95
with tempfile .TemporaryDirectory () as tmpdir :
96
96
if port :
97
97
env ["PGRST_SERVER_PORT" ] = str (port )
98
- env ["PGRST_SERVER_HOST" ] = host or "localhost"
99
- baseurl = f"http://localhost :{ port } "
98
+ env ["PGRST_SERVER_HOST" ] = hostname = host or "localhost"
99
+ baseurl = f"http://{ hostname } :{ port } "
100
100
else :
101
101
socketfile = pathlib .Path (tmpdir ) / "postgrest.sock"
102
102
env ["PGRST_SERVER_UNIX_SOCKET" ] = str (socketfile )
103
103
baseurl = "http+unix://" + urllib .parse .quote_plus (str (socketfile ))
104
104
105
105
adminport = freeport (port )
106
106
env ["PGRST_ADMIN_SERVER_PORT" ] = str (adminport )
107
- adminurl = f"http://localhost :{ adminport } "
107
+ adminurl = f"http://{ hostname } :{ adminport } "
108
108
109
109
command = [POSTGREST_BIN ]
110
110
env ["HPCTIXFILE" ] = hpctixfile ()
You can’t perform that action at this time.
0 commit comments