Skip to content

Commit

Permalink
Merge pull request #763 from ionite34/backport/main/pr-762
Browse files Browse the repository at this point in the history
[dev to main] backport: actually pass the env vars to swarm (762)
  • Loading branch information
mohnjiles authored Aug 9, 2024
2 parents 86db8db + 2144816 commit 21f51a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning 2.0](https://semver.org/spec/v2
- Fixed potential memory leak of transient controls (Inference Prompt and Output Image Viewer) not being garbage collected due to event subscriptions
- Fixed Batch Count seeds not being recorded properly in Inference projects and image metadata
- Fixed [#795](https://github.com/LykosAI/StabilityMatrix/issues/795) - SwarmUI launch args not working properly
- Fixed [#745](https://github.com/LykosAI/StabilityMatrix/issues/745) - not passing Environment Variables to SwarmUI
### Supporters
#### Visionaries
- Shoutout to our Visionary-tier Patreon supporter, **Scopp Mcdee**! Huge thanks for your continued support!
Expand Down
2 changes: 2 additions & 0 deletions StabilityMatrix.Core/Models/Packages/StableSwarm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using FreneticUtilities.FreneticDataSyntax;
using StabilityMatrix.Core.Attributes;
using StabilityMatrix.Core.Exceptions;
using StabilityMatrix.Core.Extensions;
using StabilityMatrix.Core.Helper;
using StabilityMatrix.Core.Helper.Cache;
using StabilityMatrix.Core.Models.FDS;
Expand Down Expand Up @@ -254,6 +255,7 @@ public override async Task RunPackage(
["ASPNETCORE_ENVIRONMENT"] = "Production",
["ASPNETCORE_URLS"] = "http://*:7801"
};
aspEnvVars.Update(settingsManager.Settings.EnvironmentVariables);

void HandleConsoleOutput(ProcessOutput s)
{
Expand Down

0 comments on commit 21f51a2

Please sign in to comment.