Posts

Showing posts from September, 2018

Host ASP.NET Core 2.1 application on Ubuntu Server 18.04

To understand and apply this, first see: Host ASP.NET Core on Linux with Nginx The tutorial from above is pretty straightforward, but is for Ubuntu Server 16.04. In the following, i will show you how to bypass the problems when hosting ASP.NET Core 2.1 application on Ubuntu Server 18.04. The first problem is installing the SDK, for Ubuntu Server 18.04 use: shell> curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg shell> sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg shell> sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-bionic-prod bionic main" > /etc/apt/sources.list.d/dotnetdev.list' shell> wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb shell> sudo dpkg -i packages-microsoft-prod.deb shell> sudo apt-get install apt-transport-https shell> sudo apt-get update shell> sudo apt-get inst...