mix popcorn.server (Popcorn v0.3.0)
View SourceStarts a static file server with COOP/COEP headers for running WASM.
Serves files from the configured directory with the HTTP headers
required by browsers to run WebAssembly with SharedArrayBuffer.
The server runs as a separate Elixir process using Mix.install to
fetch Bandit and Plug, so these dependencies don't need to be in your
project's mix.exs.
Options
--port- port to listen on (default: 4000)--dir- directory to serve files from (default: "dist")
Examples
$ mix popcorn.server
$ mix popcorn.server --port 8080 --dir dist