Skip to content

Commit

Permalink
docs(deploy): add deno to runtime list (#1899)
Browse files Browse the repository at this point in the history
  • Loading branch information
kalwabed authored Nov 9, 2023
1 parent 8fc7137 commit 834ef3b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 23 deletions.
25 changes: 25 additions & 0 deletions docs/content/2.deploy/10.runtimes/deno.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
icon: simple-icons:deno
---

# Deno

Run Nitro apps with [Deno](https://deno.com/) runtime.

## Deno Server

**Preset:** `deno-server` ([switch to this preset](/deploy/#changing-the-deployment-preset))

::alert{type="warning"}
Deno runtime preset is experimental.
::

You can build your Nitro server using Node.js to run within [Deno Runtime](https://deno.com/runtime) in a custom server.

```bash
# Build with the deno NITRO preset
NITRO_PRESET=deno-server npm run build

# Start production server
deno run --unstable --allow-net --allow-read --allow-env .output/server/index.ts
```
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
# Deno
# Deno Deploy

Deploy Nitro apps to [Deno Deploy](https://deno.com/deploy).

## Deno Deploy

**Preset:** `deno_deploy` ([switch to this preset](/deploy/#changing-the-deployment-preset))

::alert{type="warning"}
Deno deploy preset is experimental.
::

### Deploy with the CLI
## Deploy with the CLI

You can use [deployctl](https://deno.com/deploy/docs/deployctl) to deploy your app.

Expand All @@ -25,7 +23,7 @@ cd .output
deployctl deploy --project=my-project server/index.ts
```

### Deploy within CI/CD using GitHub Actions
## Deploy within CI/CD using GitHub Actions

You just need to include the deployctl GitHub Action as a step in your workflow.

Expand Down Expand Up @@ -64,21 +62,3 @@ jobs:
entrypoint: server/index.ts
root: .output
```
## Deno Server (Runtime)
**Preset:** `deno-server` ([switch to this preset](/deploy/#changing-the-deployment-preset))

::alert{type="warning"}
Deno runtime preset is experimental.
::

You can build your Nitro server using Node.js to run within [Deno Runtime](https://deno.com/runtime) in a custom server.

```bash
# Build with the deno NITRO preset
NITRO_PRESET=deno-server npm run build
# Start production server
deno run --unstable --allow-net --allow-read --allow-env .output/server/index.ts
```

0 comments on commit 834ef3b

Please sign in to comment.