Skip to content

1. Deployment

Mark Downie edited this page Feb 28, 2021 · 37 revisions

Deploy to Azure App Services for Linux (or Windows)

1. Create your Azure App Service

  • Publish: Code
  • Runtime Stack: .NET Core 3.1
  • Operating System: Linux or Windows
  • SKU & size: B1 or above is recommended for production use.

2. Grab the latest version DasBlog Core and upload

Download the latest version of the DasBlog Core zip files. To upload the content of the zip file you will need to grab your FTP credentials from Deployment Center in the Azure Portal and upload the files using an FTP client.

3. Configure your App Services Environment

Navigate to Configuration settings and under Application Settings click the New Application Setting button to create a new setting with the following name and value:

  • Name: ASPNETCORE_ENVIRONMENT
  • Value: Production

Under General Settings ensure the the Stack Settings are as follows:

  • Stack: .NET
  • Major Version: .NET Core 3
  • Minor Version: .NET Core 3 LTS
  • Startup Command: dotnet DasBlog.Web.dll

4. Configure DasBlog Core settings

Click on the Advanced Tools in the Azure App and click on SSH

cd ..

dotnet dasblog-core.dll init

dotnet dasblog-core.dll config root https://myblogsite.azurewebsites.net

Visual Studio

If you are comfortable with IDEs then the most efficient way to deploy DasBlog Core with Visual Studio by following the Overview of deployment in Visual Studio.

Configuration settings are as follows:

  • Configuration: Release
  • netcoreapp3.1
  • Self -Contained
  • win-x64

Configuration files + Environments

There are a collection four configuration files necessary for DasBlog Core to work (listed below). DasBlog Core uses "ASPNETCORE_ENVIRONMENT" environment variable value to find the correct config file at runtime:

  • site.[Environment].config
  • meta.[Environment].config
  • siteSecurity.[Environment].config
  • IISUrlRewrite.[Environment].config

For example, if you have deployed to a "Production" environment the site configuration file DasBlog will look for will be named site.Production.config.

Additional questions?

If you have additional questions or concerns please submit an issue.

Clone this wiki locally