Skip to content
This repository has been archived by the owner on Sep 5, 2022. It is now read-only.

Commit

Permalink
Added Environment Variables for docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Derek-R-S committed Apr 7, 2021
1 parent c585467 commit 174c29a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ServerProject-DONT-IMPORT-INTO-UNITY/LRM/Program/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ public async Task MainAsync()
{
conf = JsonConvert.DeserializeObject<Config>(File.ReadAllText(CONFIG_PATH));

// Docker variables.
ushort.TryParse(Environment.GetEnvironmentVariable("LRM_ENDPOINT_PORT"), out conf.EndpointPort);

ushort.TryParse(Environment.GetEnvironmentVariable("LRM_TRANSPORT_PORT"), out conf.TransportPort);

WriteLogMessage("Loading Assembly... ", ConsoleColor.White, true);
try
{
Expand Down
Binary file not shown.

0 comments on commit 174c29a

Please sign in to comment.