Environment Configurations (original) (raw)
To run in Development mode use:
dotnet run --project "src/WebApi/WebApi.csproj" --Environment="Development"
It starts the application and call ConfigureDevelopmentServices method which runs the application using in memory persistence.
The second option is to run in Production mode:
dotnet run --project "src/WebApi/WebApi.csproj" --Environment="Production"
This command will call ConfigureProductionServices then use SQL Server repositories.