Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Web / PUSG.Web / Program.cs
diff options
context:
space:
mode:
1 files changed, 3 insertions, 1 deletions
-rw-r--r--src/Web/PUSG.Web/Program.cs4
diff --git a/src/Web/PUSG.Web/Program.cs b/src/Web/PUSG.Web/Program.cs
index 0bf82e6..cd804d3 100644
--- a/src/Web/PUSG.Web/Program.cs
+++ b/src/Web/PUSG.Web/Program.cs
@@ -20,7 +20,9 @@ namespace PUSG.Web
Host.CreateDefaultBuilder(args)
.ConfigureWebHostDefaults(webBuilder =>
{
- webBuilder.UseStartup<Startup>();
+ var port = Environment.GetEnvironmentVariable("PORT");
+
+ webBuilder.UseStartup<Startup>().UseUrls("http://*:" + port);
});
}
}