A deployment is a snapshot of all code and environment variables required to run an application. Deployments are immutable after they have been created. To deploy a new version of the code for an application, a new deployment must be created.
There can also be other URLs that can point to a deployment, like custom domains.
<projectname--branchname>.deno.dev is also supported.
Production vs. preview deployments
All deployments have a preview URL that can be used to view this specific
deployment. Preview URLs have the format
A deployment can either be a production or a preview deployment. These
deployments do not have any differences in runtime functionality. The only
distinguishing factor is that a project’s production deployment will receive
traffic from the project URL (e.g.
myproject.deno.dev), and from custom
domains in addition to traffic to the deployment’s preview URL.
Promoting preview deployments to production deployments via Deno Deploy UI
Preview deployments can be “promoted” to production via the Deno Deploy UI:
- Navigate to the project page.
- Click on the Deployments tab.
- Click on the three dots next to the deployment you want to promote to production and select Promote to Production
Creating production deployments via
If you are deploying your Deno code with
deployctl, you can deploy to
production with the
deployctl deploy --prod --project=helloworld main.ts