Added deployment details to readme

This commit is contained in:
Luke Bunselmeyer 2023-05-08 08:56:04 -04:00
parent b141200ddb
commit 1816ba5505

View File

@ -96,3 +96,20 @@ Run all checks
```shell
npm run validate
```
## Deployment
This project uses Github actions to deploy changes pushed to the `main` branch to fly.io.
The deployment pipeline is defined in [.github/workflows/deploy.yml](.github/workflows/deploy.yml)
and [fly.toml](fly.toml). Authentication to fly.io is enabled by
a `FLY_API_TOKEN` [repository secret](https://docs.github.com/en/actions/security-guides/encrypted-secrets#creating-encrypted-secrets-for-a-repository).
The following commands were used to initialize the fly application.
```shell
fly apps create awesome-radio-1ae3
fly secrets set SESSION_SECRET=$(openssl rand -hex 32) --app awesome-radio-1ae3
fly volumes create data --size 1 --app awesome-radio-1ae3
fly scale memory 512 --app awesome-radio-1ae3
```