You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MongoDB support unnecessarily complicated the code and there's no need to run distributed servers in the foreseeable future. This keeps the abstract storage interface so we can wrap a distributed cache in the future.
Copy file name to clipboardExpand all lines: docs/release-notes.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@
23
23
* Fixed `.pdb` files ignored for error stack traces for mods rewritten by SMAPI.
24
24
25
25
* For SMAPI developers:
26
-
*When deploying web services to a single-instance app, the MongoDB server can now be replaced with in-memory storage.
26
+
*Eliminated MongoDB storage in the web services, which complicated the code unnecessarily. The app still uses an abstract interface for storage, so we can wrap a distributed cache in the future if needed.
27
27
* Merged the separate legacy redirects app on AWS into the main app on Azure.
Copy file name to clipboardExpand all lines: docs/technical/web.md
+1-21Lines changed: 1 addition & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -352,7 +352,6 @@ your machine, with no external dependencies aside from the actual mod sites.
352
352
--------------------------- | -----------
353
353
`AzureBlobConnectionString` | The connection string for the Azure Blob storage account. Defaults to using the system's temporary file folder if not specified.
354
354
`GitHubUsername`<br />`GitHubPassword` | The GitHub credentials with which to query GitHub release info. Defaults to anonymous requests if not specified.
355
-
`Storage` | How to storage cached wiki/mod data. `InMemory` is recommended in most cases, or `MongoInMemory` to test the MongoDB storage code. See [production environment](#production-environment) for more info on `Mongo`.
356
355
357
356
2. Launch `SMAPI.Web` from Visual Studio to run a local version of the site.
358
357
@@ -385,23 +384,4 @@ Initial setup:
385
384
`Site:BetaBlurb` | If `Site:BetaEnabled` is true and there's a beta version of SMAPI in its GitHub releases, this is shown on the beta download button as explanatory subtext.
386
385
`Site:SupporterList` | A list of Patreon supports to credit on the download page.
387
386
388
-
To enable distributed servers:
389
-
390
-
1. Launch an empty MongoDB server (e.g. using [MongoDB Atlas](https://www.mongodb.com/cloud/atlas))
391
-
for mod data.
392
-
2. Add these application settings in the App Services environment:
`Storage:Database` | Set to the MongoDB database name (defaults to `smapi`).
404
-
405
-
To deploy updates:
406
-
1.[Deploy the web project from Visual Studio](https://docs.microsoft.com/en-us/visualstudio/deployment/quickstart-deploy-to-azure).
407
-
2. If the MongoDB schema changed, delete the MongoDB database. (It'll be recreated automatically.)
387
+
To deploy updates, just [redeploy the web project from Visual Studio](https://docs.microsoft.com/en-us/visualstudio/deployment/quickstart-deploy-to-azure).
returnnewModInfoModel().SetError(RemoteModStatus.DoesNotExist,$"There's no mod site with key '{updateKey.Repository}'. Expected one of [{string.Join(", ",this.Repositories.Keys)}].");
0 commit comments