diff --git a/.gitignore b/.gitignore index 4c10456..1ed08db 100644 --- a/.gitignore +++ b/.gitignore @@ -452,5 +452,4 @@ $RECYCLE.BIN/ !.vscode/tasks.json !.vscode/launch.json !.vscode/extensions.json - Properties \ No newline at end of file diff --git a/Program.cs b/Program.cs index bd2b2de..b3cd3dc 100644 --- a/Program.cs +++ b/Program.cs @@ -1,6 +1,10 @@ var builder = WebApplication.CreateBuilder(args); + var app = builder.Build(); -app.MapGet("/", () => "Hello World!"); -var port = Environment.GetEnvironmentVariable("PORT") ?? "3100"; -app.Run("http://0.0.0.0:" + port); + +app.MapGet("/", () => +{ + return "Hello World"; +}); +app.Run(); \ No newline at end of file diff --git a/dotnet-mvc-test.csproj b/dotnet-mvc-test-2.csproj similarity index 55% rename from dotnet-mvc-test.csproj rename to dotnet-mvc-test-2.csproj index c5af279..af95f96 100644 --- a/dotnet-mvc-test.csproj +++ b/dotnet-mvc-test-2.csproj @@ -4,7 +4,11 @@ net6.0 enable enable - dotnet_mvc_test + dotnet_mvc_test_2 + + + +