Deployment
Compile a Bun binary or build and run the Node.js template for production.
Deploying an Arcton app comes down to running one build command and then starting the result — which command depends on which template you scaffolded.
Bun: compile a standalone binary
The Bun template's compile script bundles your app and the Bun runtime into
a single executable:
bun run compilewhich runs:
bun build --compile --minify --sourcemap ./src/index.ts --outfile arcton-appThe result is a self-contained binary — no node_modules, no separate runtime
install on the target machine:
./arcton-appIf you'd rather run the source directly without compiling, the template's
start script does that instead:
bun run startNode.js: build then run
The Node.js template's build script type-checks and emits JavaScript:
npm run buildwhich runs:
tsc --buildThen start the compiled output with the start script:
npm run startwhich runs:
node dist/index.jsLabeling the environment
Pass env to listen() to label the startup banner for the environment
you're deploying to — see Environment.