1 Environment Configurations
Ivan Paulovich edited this page 2019-12-03 16:10:42 +01:00

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.