Does Deno Compile Support Deno Serve --parallel?
Hi,
I was reading the documentation and Deno Serve mentions the --parallel option but Deno Compile isn't very clear. It says that runtime flags can just be attached when calling compile, but --parallel is only an option for deno serve and not deno run. If I'm compiling a server calling Deno.serve, will the compiler know to automatically read executing the binary as essentially calling "deno serve" instead of calling "deno run"? Or to run deno serve in parallel are you essentially required to run it uncompiled? Might be good to add to the deno compile page either way. Thanks!
3 Replies
No,
Deno.serve
!== deno serve
Definitely. The real question in all this is, if I want to run my server in parallel using deno, is that still possible with deno compile or do I have to use deno serve --parallel and not ship as a static binary? The state of this is not super clear from the docs for serve and compile on CLI.
The
deno serve --parallel
feature is not supported in deno compile
or binaries created with deno compile
. It's only supported for the deno serve
command. Relevant feature request: https://github.com/denoland/deno/issues/27210