Skip to content

Commit

Permalink
#117 Accessibility - Deployment settin
Browse files Browse the repository at this point in the history
  • Loading branch information
kgniazdowski committed Nov 15, 2021
1 parent 94cdc03 commit 29f424d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion accessibility-service/src/Accessibility.Api/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public void ConfigureServices(IServiceCollection services)
ConfigureOptions(services);
ConfigureCors(services);

if (!webHostEnvironment.IsDevelopment())
if (!webHostEnvironment.IsDevelopment() && Configuration["Deployment"] == "Heroku")
Configuration["ConnectionStrings:Accessibility"] = GetHerokuConnectionString();

var applicationAssembly = typeof(CreateBookingCommand).Assembly;
Expand Down
3 changes: 2 additions & 1 deletion accessibility-service/src/Accessibility.Api/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,6 @@
"HourChunkCount": 2,
"UseBreakBetweenBookingsMechanism": false,
"BreakBetweenBookings": 0
}
},
"Deployment": "None"
}

0 comments on commit 29f424d

Please sign in to comment.