summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-07-19 16:51:50 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-09-14 18:53:25 -0400
commit450cfc11c2f9139ce19eb44c579e653c7597771b (patch)
treebd77ef77f6b603ba38108fa69bc7465ca27c6bf3
parent1b807edd00c525974519bef4c2800f9498ce3eba (diff)
downloadSMAPI-450cfc11c2f9139ce19eb44c579e653c7597771b.tar.gz
SMAPI-450cfc11c2f9139ce19eb44c579e653c7597771b.tar.bz2
SMAPI-450cfc11c2f9139ce19eb44c579e653c7597771b.zip
avoid Hangfire connection errors on startup (#651)
-rw-r--r--src/SMAPI.Web/Startup.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/SMAPI.Web/Startup.cs b/src/SMAPI.Web/Startup.cs
index 85b6ebe0..552d623c 100644
--- a/src/SMAPI.Web/Startup.cs
+++ b/src/SMAPI.Web/Startup.cs
@@ -94,7 +94,8 @@ namespace StardewModdingAPI.Web
.UseRecommendedSerializerSettings()
.UseMongoStorage(mongoConfig.GetConnectionString(), $"{mongoConfig.Database}-hangfire", new MongoStorageOptions
{
- MigrationOptions = new MongoMigrationOptions(MongoMigrationStrategy.Drop)
+ MigrationOptions = new MongoMigrationOptions(MongoMigrationStrategy.Drop),
+ CheckConnection = false // error on startup takes down entire process
});
});