mirror of
https://github.com/ivabus/pantry
synced 2024-09-20 00:30:48 +03:00
try to fix openplayground entrypoint
This commit is contained in:
parent
e26eda10d9
commit
bdb5e0d435
|
@ -1,12 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -ex
|
||||
set -em
|
||||
|
||||
source <(tea --magic=bash)
|
||||
# source <(tea +curl.se)
|
||||
|
||||
PORT=5432 #TODO find a port!
|
||||
|
||||
"$d"/bin/openplayground run --port $PORT &
|
||||
openplayground run --port $PORT &
|
||||
|
||||
PID=$!
|
||||
|
||||
|
@ -21,7 +21,9 @@ done
|
|||
|
||||
# open the URL once the HEAD request succeeds
|
||||
if test -n "$TEA_GUI"; then
|
||||
echo "{\"xyz.tea\":{\"gui\":\"http://127.0.0.1:$PORT\"}}" >&2
|
||||
echo
|
||||
echo '{"xyz.tea":{"gui":"http://127.0.0.1:5432"}}'
|
||||
echo
|
||||
else
|
||||
open "http://127.0.0.1:$PORT"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue