Skip to content

Commit

Permalink
Try another http server
Browse files Browse the repository at this point in the history
  • Loading branch information
waliid committed Dec 10, 2024
1 parent 7335984 commit e9466ff
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Scripts/test-streams.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SCRIPT_NAME=$(basename "$0")
SCRIPT_DIR=$(dirname "$0")

eval "$(pkgx --shellcode)"
env +python +ffmpeg +packager
env +npx +ffmpeg +packager

GENERATED_DIR="/tmp/pillarbox"

Expand All @@ -17,8 +17,8 @@ function serve_test_streams {

kill_test_streams "$dest_dir"

if ! command -v python &> /dev/null; then
echo "python could not be found"
if ! command -v npx &> /dev/null; then
echo "npx could not be found"
exit 1
fi

Expand Down Expand Up @@ -115,7 +115,7 @@ function generate_packaged_streams {
}

function serve_directory {
python -m http.server 8123 --directory "$1" &
npx http-server "$1" -p 8123 &
}

function kill_test_streams {
Expand Down

0 comments on commit e9466ff

Please sign in to comment.