Skip to content

Commit 373b829

Browse files
Minor wording changes
1 parent 1d2135f commit 373b829

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/deployment.qmd

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ The disadvantages are:
3636
The application relies on environment variables stored in `.env` (like `SECRET_KEY`, `DB_USER`, `DB_PASSWORD`, `DB_HOST`, `DB_PORT`, `DB_NAME`, `RESEND_API_KEY`, `BASE_URL`). These sensitive values should be stored securely using Modal Secrets.
3737

3838
Create a Modal Secret (e.g., named `fastapi-webapp-secrets`) either through the Modal UI or CLI:
39+
3940
```bash
4041
# Example using CLI
4142
modal secret create your-app-name-secret \
@@ -46,9 +47,11 @@ modal secret create your-app-name-secret \
4647
DB_PORT='your_db_port' \
4748
DB_NAME='your_db_name' \
4849
RESEND_API_KEY='your_resend_api_key' \
49-
BASE_URL='https://your-modal-app-url' # Usually https://your-org-name--your-app-name-serve.modal.run
50+
BASE_URL='https://your-username--your-app-name-serve.modal.run'
5051
```
5152

53+
You can probably guess what the `BASE_URL` will be from your user/organization name and the name of the Modal app, but you can also update it later after you get the official public base URL.
54+
5255
**Important:** Ensure `DB_HOST` points to your *cloud* database host address, not `localhost` or `host.docker.internal`.
5356

5457
#### Defining the Modal Image and App

0 commit comments

Comments
 (0)