From the course: Deploying ASP.NET Core Applications

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Self-hosting with Kestrel

Self-hosting with Kestrel

From the course: Deploying ASP.NET Core Applications

Start my 1-month free trial

Self-hosting with Kestrel

- [Instructor] Now that .NET Core is set up on our Linux machine, let's run an ASP.NET Core application. First, you'll need to get your application's published artifacts onto this machine. You can do this by running dotnet publish on another machine and copying the files over the network or by building and publishing from source directly on this machine. If you do wanna compile from source, you'll need to install the .NET Core SDK using apt-get in a similar way to how you installed the Runtime. Then you can do dotnet publish - c Release. No matter how you get the published files onto the server, once they're there, you'll want to go to the bin directory, cd bin, and the Release directory. And in this version, the directory underneath there is called netcoreapp2.1. And finally, the publish directory. This directory contains all of the files that are needed to run this application on this machine. What I wanna do is copy these into another place, maybe /var/websites, to hold all the…

Contents