From f1b6b4c4014a92bc6f9d166611cfd725746eb9e5 Mon Sep 17 00:00:00 2001 From: Ian Bull Date: Thu, 5 Dec 2024 05:04:41 -0800 Subject: [PATCH] doc: add information about deno compile (#2783) --- docs/latest/concepts/deployment.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/latest/concepts/deployment.md b/docs/latest/concepts/deployment.md index c8593c6a611..0f7ff476996 100644 --- a/docs/latest/concepts/deployment.md +++ b/docs/latest/concepts/deployment.md @@ -69,6 +69,17 @@ documentation. - [Amazon Web Services][aws-container-registry] - [Google Cloud][gcp-container-registry] +## Self Contained Executable + +With Deno 2.1, you can create a self-contained executable of your Fresh project +that includes all assets and dependencies. This executable can run on any +platform without requiring Deno to be installed. + +```sh Terminal +$ deno build +$ deno compile --include static --include _fresh --include deno.json -A main.ts +``` + [aws-container-registry]: https://docs.aws.amazon.com/AmazonECS/latest/userguide/create-container-image.html#create-container-image-push-ecr [gcp-container-registry]: https://cloud.google.com/container-registry/docs/pushing-and-pulling [deno-deploy]: https://deno.com/deploy