Update release notes and deploy workspace
This commit is contained in:
+5
-18
@@ -22,15 +22,8 @@ The API reads its connection string from:
|
||||
- environment variable `VTSA_POSTGRES`
|
||||
- environment variable `ConnectionStrings__Postgres`
|
||||
|
||||
Presentation/demo data is controlled separately:
|
||||
|
||||
```text
|
||||
VTSA_SEED_MODE=demo
|
||||
```
|
||||
|
||||
- `demo`, `presentation` or `sample`: seed local presentation data.
|
||||
- `none`, `off`, `disabled` or an unset value in Production: do not seed presentation data.
|
||||
- `Backend/appsettings.Development.json` defaults to `demo`; `Backend/appsettings.json` defaults to `none`.
|
||||
Demo content is inserted through explicit demo-data migrations, not runtime startup seeding.
|
||||
Before production, create or activate a real season and delete any season marked as demo. The default app configuration migration contains only non-secret placeholders; restore private Twitch/demo/team credentials from environment variables or a local ignored backup.
|
||||
|
||||
If Docker is available locally, start a dev database from the repository root with:
|
||||
|
||||
@@ -50,13 +43,13 @@ dotnet build
|
||||
Create a migration:
|
||||
|
||||
```bash
|
||||
dotnet ef migrations add InitialCreate
|
||||
dotnet ef migrations add <MigrationName>
|
||||
```
|
||||
|
||||
Generate a SQL migration script:
|
||||
Generate a SQL migration script when deployment needs a reviewed artifact:
|
||||
|
||||
```bash
|
||||
dotnet ef migrations script 0 20260617060000_InitialCreate --output Migrations/InitialCreate.sql
|
||||
dotnet ef migrations script --output Migrations/migration.sql
|
||||
```
|
||||
|
||||
Apply migrations once PostgreSQL is running:
|
||||
@@ -65,12 +58,6 @@ Apply migrations once PostgreSQL is running:
|
||||
dotnet ef database update
|
||||
```
|
||||
|
||||
Fallback bootstrap if `dotnet ef` is not usable in the current environment:
|
||||
|
||||
```bash
|
||||
psql "$VTSA_POSTGRES" -f Migrations/InitialCreate.manual.sql
|
||||
```
|
||||
|
||||
Run the API:
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user