Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 800 Bytes

README.md

File metadata and controls

40 lines (27 loc) · 800 Bytes

Database

See [https://learn.microsoft.com/en-us/ef/core/managing-schemas/migrations/?tabs=dotnet-core-cli] (https://learn.microsoft.com/en-us/ef/core/managing-schemas/migrations/?tabs=dotnet-core-cli) See [https://learn.microsoft.com/en-us/ef/core/cli/dotnet] (https://learn.microsoft.com/en-us/ef/core/cli/dotnet)

Drop Existing Database

> dotnet ef database drop

Migrate Database

> rm -r Migrations
> dotnet ef migrations add InitialCreate
> dotnet ef database update

Run

> dotnet run --launch-profile https

or

$Env:ASPNETCORE_ENVIRONMENT = "Development"
dotnet run --no-launch-profile --urls="https://localhost:7070"

Build Release

> dotnet publish --configuration Release
> chown -R gaos:gaos /opt/gaos/bin/Release/net7.0/publish