A generic Deno component that can be used to run any Deno app.
Uses the official Deno Docker image.
- In the Dashboard, click Create Project +
- Under Pick Components, choose Deno
- In Pick Add-ons, you can add one or multiple databases to your app
- Choose Create Repository, which will generate a new GitHub repo
- Lastly, click Launch Stack
Runs deno task dev
when deployment is started, which executes your app in watch mode with network and environment variable access:
deno run --watch --allow-net --allow-env src/main.ts
No deno install
is required, as new import in TypeScript files will trigger Deno to automatically download and cache those modules as needed.
Builds a production-ready image. Runs deno task prod
to start your app with network and environment variable access:
deno run --allow-net --allow-env src/main.ts
Dependencies are cached during the build stage using deno cache .
.