Skip to content

Commit

Permalink
docs: update deployment section of README (denoland#615)
Browse files Browse the repository at this point in the history
  • Loading branch information
lambtron authored Oct 2, 2023
1 parent e4ad265 commit ddc8fbd
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,23 +223,20 @@ AWS Lightsail and Digital Ocean.
> [`docker-compose.yml`](./docker-compose.yml) files come included with this
> repo.
The values of the environmental variables are pulled from the `.env` file.

The `DENO_DEPLOYMENT_ID` variable is needed for Docker deployment of a Deno
Fresh app for caching to work properly. Its value needs to be a unique id tied
to the deployment. We recommend using the SHA1 commit hash, which can be
obtained from the following command run in the repo's root folder:
1. Grab the SHA1 commit hash by running the following command in the repo's root
folder:

```sh
# get the SHA1 commit hash of the current branch
git rev-parse HEAD
```

Then, copy the output of the above and paste it as `DENO_DEPLOYMENT_ID` in your
.env file.
1. Copy the output of the above and paste it as `DENO_DEPLOYMENT_ID` in your
.env file. This value is needed to enable caching on Fresh in a Docker
deployment.

Finally, refer to these guides for using Docker to deploy Deno to specific
platforms:
1. Finally, refer to these guides for using Docker to deploy Deno to specific
platforms:

- [Amazon Lightsail](https://deno.land/manual/advanced/deploying_deno/aws_lightsail)
- [Digital Ocean](https://deno.land/manual/advanced/deploying_deno/digital_ocean)
Expand Down

0 comments on commit ddc8fbd

Please sign in to comment.