From bc3aca83e424bbc9f0a8fa5a236df7122ecc1554 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Wed, 2 Aug 2023 11:33:56 -0400 Subject: [PATCH] use `npx get-port` to get a free port --- projects/github.com/nat/openplayground/entrypoint.sh | 4 +--- projects/github.com/nat/openplayground/package.yml | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/projects/github.com/nat/openplayground/entrypoint.sh b/projects/github.com/nat/openplayground/entrypoint.sh index 4a43c417..0eabc792 100755 --- a/projects/github.com/nat/openplayground/entrypoint.sh +++ b/projects/github.com/nat/openplayground/entrypoint.sh @@ -2,9 +2,7 @@ set -em -# source <(tea +curl.se) - -PORT=43873 #TODO find a port automatically! +PORT=$(tea get-port) openplayground run --port $PORT & diff --git a/projects/github.com/nat/openplayground/package.yml b/projects/github.com/nat/openplayground/package.yml index 8e62bcf3..a4767142 100644 --- a/projects/github.com/nat/openplayground/package.yml +++ b/projects/github.com/nat/openplayground/package.yml @@ -10,6 +10,7 @@ platforms: darwin dependencies: python.org: ~3.11 gnu.org/bash: '*' + tea.xyz: ^0 build: dependencies: