Introducing Livops 2.0! Promo codeCEOgives you 8,000 so‘m on your balance.What’s new

Deno hosting in 2026: how to deploy a Deno app

A Deno project is recognised from deno.json, built only when it has a build task, and started from its preview or start task, or from its entry file. Livops runs it on the port it assigns.

By Livops team, the people who build and run LivopsUpdated

Livops recognises a Deno project from a deno.json or deno.jsonc file, when the folder has no package.json and no Dockerfile. It installs the dependencies, runs a build only if deno.json has a build task, and starts the app.

What runs

  • install: deno install. A failure at this step does not stop the deploy.
  • build: deno task build, only when deno.json has a build task. Fresh uses this for its ahead-of-time build.
  • start: the first of these that exists:
    1. the preview task
    2. the start task
    3. main.ts, main.js, server.ts or src/main.ts, run with deno run -A

Livops passes the PORT variable to the process. Your code must read it, for example with Deno.env.get("PORT"), and listen on that port.

Which start task to use

Some templates set start to a development server that watches files and writes generated code into the project. That is wrong in production, because the watcher is meant for development and stops when it cannot write. If your project has a preview task that runs the production build, Livops uses that instead. If you do not, make start run the production server and not the watcher.

Permissions

The entry file runs with deno run -A, which gives it every permission. That is convenient, but it means the app can read and write anything the process can reach. Keep secrets in the Variables section of the cabinet, not in the code.

Environment variables

Put secrets and settings in the Variables section. Read them with Deno.env.get. A change takes effect after a restart, and a variable that the build reads needs a new deploy.

Common mistakes

  • A start task that runs a dev server. It watches files and stops on the first write it cannot make. Use a preview task or make start run the production entry.
  • A hard-coded port. Read PORT from the environment.
  • No entry file the preset can find. If your server is in another file, add a start task that runs it.
  • Running deno task dev in production. The dev task is for your laptop.

Questions

Is a Deno app free on Livops?

A Deno app is a server process, so it is a web app and is paid by the memory it uses. Only a site built to plain files is free, and a Deno server is not one.

Which file does Livops start?

In order: the preview task in deno.json, then the start task, then main.ts, main.js, server.ts or src/main.ts, whichever exists first. The start is run with deno run -A for the entry file, which gives the app its permissions.

Why does Livops prefer the preview task?

Some Deno templates set start to a development server that watches files. A preview task, when there is one, is the production run of what the build made, so Livops uses it first.

Sources

  1. Deno — Runtime documentation (docs.deno.com). Checked .
  2. Deno — Tasks (docs.deno.com). Checked .

Put your project online today

Connect GitHub or drop a folder. No card is asked for.

Deploy your Deno app

Got a question? — @livops_uz