Skip to content

Environment Configurations

Ivan Paulovich edited this page Dec 3, 2019 · 1 revision

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.

Clone this wiki locally