mirror of
https://github.com/Govor-team/Govor.git
synced 2026-11-16 20:56:03 +00:00
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:
@@ -36,6 +36,8 @@
|
||||
<ItemGroup>
|
||||
<Folder Include="logs\" />
|
||||
<Folder Include="uploads\" />
|
||||
<Content Remove="secrets/**" />
|
||||
<None Update="secrets/**" CopyToOutputDirectory="Never" CopyToPublishDirectory="Never" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
Reference in New Issue
Block a user