Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 738 Bytes

File metadata and controls

20 lines (16 loc) · 738 Bytes
description Generate a self contained executable with deno compile.

You can create a self-contained executable out of your app with the deno compile command. It will include all assets and dependencies. This executable can run on any platform without requiring Deno to be installed.

# Build your app first
$ deno task build
# Generate self-contained executable
deno compile --include static --include .fresh --include deno.json -A my-app .fresh/compiled-entry.js

The compiled entry supports two environment variables out of the box:

  • PORT to set the port number (PORT=4000 my-app)
  • HOSTNAME to set the host name number (HOSTNAME=0.0.0.0 my-app)