From 4aa6f9ad2ad972b8f4110617234e3000ce0fddd6 Mon Sep 17 00:00:00 2001 From: anderejd Date: Tue, 12 Mar 2019 21:32:00 +0100 Subject: [PATCH] Use basic-http-server from crates.io. --- azure-pipelines.yml | 2 +- examples/raytrace-parallel/build.sh | 3 ++- examples/without-a-bundler/build.sh | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index fbc8af42cd0..768796d2c10 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -168,7 +168,7 @@ jobs: echo "##vso[task.setvariable variable=PATH;]$PATH:$PWD" displayName: "install xargo" - script: | - sed -i 's/python/#python/' examples/raytrace-parallel/build.sh + sed -i 's/basic-http-server/#basic-http-server/' examples/raytrace-parallel/build.sh (cd examples/raytrace-parallel && ./build.sh) cp examples/raytrace-parallel/*.{js,html,wasm} $BUILD_ARTIFACTSTAGINGDIRECTORY displayName: "build example" diff --git a/examples/raytrace-parallel/build.sh b/examples/raytrace-parallel/build.sh index c113f09f1d1..302e6e65581 100755 --- a/examples/raytrace-parallel/build.sh +++ b/examples/raytrace-parallel/build.sh @@ -22,4 +22,5 @@ WASM_BINDGEN_THREADS=1 \ ../../target/wasm32-unknown-unknown/release/raytrace_parallel.wasm --out-dir . \ --no-modules -python3 -m http.server +# `cargo install basic-http-server` +basic-http-server diff --git a/examples/without-a-bundler/build.sh b/examples/without-a-bundler/build.sh index 8f72ba009f5..8e59e14ac46 100755 --- a/examples/without-a-bundler/build.sh +++ b/examples/without-a-bundler/build.sh @@ -12,4 +12,5 @@ cargo run --manifest-path ../../crates/cli/Cargo.toml \ ../../target/wasm32-unknown-unknown/release/without_a_bundler.wasm --out-dir pkg \ --web -python3 -m http.server +# `cargo install basic-http-server` +basic-http-server