VMs depoloyments.
Publishing ASP.NET core to Windows VM IIS (based on Udemy lab)
8172 - (IIS inbound port - probably for publishing)
Publishing ASP.NET core application to Linux VM.
It is possible to run .NET on ubuntu server.
- need to publish .NET Core app to local folder (dev box)
- copy the local folder to VM’s
- install DOTNET runtime engine on Ubuntu - see: https://learn.microsoft.com/en-us/dotnet/core/install/linux-ubuntu-2004
- run on the VM
dotnet name-of-DLL-in-publish-foder
. It willi serve on 5000
- install nginx, change configs of ngingx to act as a reverse proxy serving from :5000. (see https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/linux-nginx?view=aspnetcore-7.0&tabs=linux-ubuntu )
- Udemy video is here: https://www.udemy.com/course/azure-certification-1/learn/lecture/31939340#overview but could not get it to work - NGINX redirected to .NET redirecting further to 5001 port.
https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/linux-nginx?view=aspnetcore-7.0&tabs=linux-ubuntu