1
0
silverbullet/website/Install/Deno Deploy.md
2023-05-24 06:11:52 +02:00

31 lines
1.1 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

You can deploy SilverBullet to [Deno Deploy](https://deno.com/deploy) for free, and store your data (space) in an S3 bucket.
This guide assumes you know how to set up the S3 bucket part and get appropriate IAM keys and secrets to access it.
For the Deno Deploy side:
Sign up for a (free) [Deno Deploy account](https://dash.deno.com/projects) and create a project there.
Set these environment variables in the project:
* AWS_ACCESS_KEY_ID
* AWS_SECRET_ACCESS_KEY
* AWS_BUCKET (e.g `my-sb-bucket`)
* AWS_ENDPOINT (e.g. `s3.eu-central-1.amazonaws.com`)
* AWS_REGION (e.g. `eu-central-1`)
* SB_FOLDER (should be `s3://`)
* SB_PORT (should be `8000`)
* SB_USER (e.g. `pete:letmein`) — this is **super important** otherwise your space will be open without any authentication
In your local environment set `DENO_DEPLOY_TOKEN` to your accounts [deploy token](https://dash.deno.com/account#access-tokens).
Install [deployctl](https://deno.com/deploy/docs/deployctl).
Then run:
```shell
deployctl deploy --prod --include= -p your-project https://silverbullet.md/silverbullet.js
```
And thats it!