Skip to content

Commit 21f51a2

Browse files
authored
Merge pull request #763 from ionite34/backport/main/pr-762
[dev to main] backport: actually pass the env vars to swarm (762)
2 parents 86db8db + 2144816 commit 21f51a2

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning 2.0](https://semver.org/spec/v2
1111
- Fixed potential memory leak of transient controls (Inference Prompt and Output Image Viewer) not being garbage collected due to event subscriptions
1212
- Fixed Batch Count seeds not being recorded properly in Inference projects and image metadata
1313
- Fixed [#795](https://github.com/LykosAI/StabilityMatrix/issues/795) - SwarmUI launch args not working properly
14+
- Fixed [#745](https://github.com/LykosAI/StabilityMatrix/issues/745) - not passing Environment Variables to SwarmUI
1415
### Supporters
1516
#### Visionaries
1617
- Shoutout to our Visionary-tier Patreon supporter, **Scopp Mcdee**! Huge thanks for your continued support!

StabilityMatrix.Core/Models/Packages/StableSwarm.cs

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
using FreneticUtilities.FreneticDataSyntax;
44
using StabilityMatrix.Core.Attributes;
55
using StabilityMatrix.Core.Exceptions;
6+
using StabilityMatrix.Core.Extensions;
67
using StabilityMatrix.Core.Helper;
78
using StabilityMatrix.Core.Helper.Cache;
89
using StabilityMatrix.Core.Models.FDS;
@@ -254,6 +255,7 @@ public override async Task RunPackage(
254255
["ASPNETCORE_ENVIRONMENT"] = "Production",
255256
["ASPNETCORE_URLS"] = "http://*:7801"
256257
};
258+
aspEnvVars.Update(settingsManager.Settings.EnvironmentVariables);
257259

258260
void HandleConsoleOutput(ProcessOutput s)
259261
{

0 commit comments

Comments
 (0)