Skip to content

Commit f1b6b4c

Browse files
authored
doc: add information about deno compile (#2783)
1 parent d86dcd6 commit f1b6b4c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/latest/concepts/deployment.md

+11
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,17 @@ documentation.
6969
- [Amazon Web Services][aws-container-registry]
7070
- [Google Cloud][gcp-container-registry]
7171

72+
## Self Contained Executable
73+
74+
With Deno 2.1, you can create a self-contained executable of your Fresh project
75+
that includes all assets and dependencies. This executable can run on any
76+
platform without requiring Deno to be installed.
77+
78+
```sh Terminal
79+
$ deno build
80+
$ deno compile --include static --include _fresh --include deno.json -A main.ts
81+
```
82+
7283
[aws-container-registry]: https://docs.aws.amazon.com/AmazonECS/latest/userguide/create-container-image.html#create-container-image-push-ecr
7384
[gcp-container-registry]: https://cloud.google.com/container-registry/docs/pushing-and-pulling
7485
[deno-deploy]: https://deno.com/deploy

0 commit comments

Comments
 (0)