- User submits code
- The code is added to a compilation queue
- The server compiles the code one at a time with the same cached dependencies. (dioxus)
- The server stores the compiled wasm and provides a temporary url to the page.
- The server deletes the wasm after a duration from being built.
You must include a /public/ace
folder in your project with the files found in this repo at /playground/public/ace
Additionally, add the following to your [web.resource]
section of Dioxus.toml
:
script = ["/ace/ace.js", "/ace/mode-rust.js", "/ace/theme-github.js", "/ace/theme-github_dark.js"]
Most of these are already set in the Dockerfile
and shouldn't need modified.
- The port the server should listen to.
PORT = 3000
- The build template that should be used.
BUILD_TEMPLATE_PATH = "/usr/local/bin/template"
- If specified, shuts down the server after X ms since the last http request.
SHUTDOWN_DELAY = null