Skip to content

1. Deployment

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

Deploy to Azure App Services for Linux

1. Create your Azure App Service

  • Publish: Code
  • Runtime Stack: .NET Core 3.1
  • Operating System: Linux
  • 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 to the site root location (site/wwwroot) 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

In the portal click on the Advanced Tools for you Azure App service and click on SSH. At the prompt type the following commands to configure DasBlog Core with your sites root URL.

cd ..

dotnet dasblog-core.dll init

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

Deploy to Azure App Services for Windows

1. Create your Azure App Service

  • Publish: Code
  • Runtime Stack: .NET Core 3.1
  • Operating System: 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 to the site root location (site/wwwroot) 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
  • .NET Version: .NET Core (3.1,2.1)

4. Configure DasBlog Core settings

In the portal click on the Advanced Tools for you Azure App service and click on Debug Console->CMD. At the prompt type the following commands to configure DasBlog Core with your sites root URL.

cd site\wwwroot

dasblog-core init

dasblog-core config root https://yoursitename.azurewebsites.net

Additional questions?

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

Clone this wiki locally