Support --migrate-only startup and secrets handling

Add a Timeweb deployment guide and improve secret handling and migrations.

- docs/timeweb-deployment.md: deployment and migration instructions for Timeweb.
- .gitignore: ignore a secrets/ folder.
- Govor.API.csproj: ensure secrets/** are not copied to output/publish.
- Program.cs: add --migrate-only flag (removes it from args), skip Firebase init when migrating, accept Firebase credentials via CredentialsJson or CredentialsPath/GOOGLE_APPLICATION_CREDENTIALS, resolve relative paths against content root, apply pending EF Core migrations and exit while logging progress.

Normal API startup behaviour unchanged (migrations are applied only with --migrate-only).
This commit is contained in:
Artemy
2026-10-04 11:22:39 +07:00
parent b51482ea57
commit 33ef17f73d
4 changed files with 92 additions and 3 deletions
+2
View File
@@ -36,6 +36,8 @@
<ItemGroup>
<Folder Include="logs\" />
<Folder Include="uploads\" />
<Content Remove="secrets/**" />
<None Update="secrets/**" CopyToOutputDirectory="Never" CopyToPublishDirectory="Never" />
</ItemGroup>
</Project>