Skip to content

← Week 10 - Deploy a Blazor app with Kestrel and systemd

Week 10 - Deploy a Blazor app with Kestrel and systemd: notes

Status: Not started

Exercise 1

Install the ASP.NET Core runtime on the server. dotnet publish locally, then rsync or scp.

Commands, results, what surprised me.

Exercise 2

Run it under a dedicated system user with a systemd unit; keep secrets in an EnvironmentFile.

Commands, results, what surprised me.

Exercise 3

Read logs with journalctl -u yourapp -f; restart behavior after crash and reboot.

Commands, results, what surprised me.

Exercise 4

Follow Microsoft's guide 'Host ASP.NET Core on Linux with Nginx' alongside.

Commands, results, what surprised me.

Deliverable

Your app running on the VPS, surviving a reboot, reachable on its Kestrel port.

Write-up.