Deploying with Bun (Default)
Bun runs TypeScript directly, so no build step is needed.-
Install dependencies
-
Start the server
This will run
bun ./app/index.tsdirectly in production mode.
Deploying with Node.js
When deploying with Node.js, the CLI will automatically build your app before starting.-
Install dependencies
-
Start the server
This will compile the app with esbuild and then run
node --import=tsx ./build/index.js. If you have a pre-compiled build, you can skip the build step:
Environment Variables
Remember that you must set the environment variables needed to load the.env file before starting the server:
ORION_ENV_SECRET_KEY: The secret key used to decrypt your environment variablesORION_ENV_FILE_PATH: Path to your encrypted environment file