-
-
Notifications
You must be signed in to change notification settings - Fork 196
1. Deployment
- Publish: Code
- Runtime Stack: .NET Core 3.1
- Operating System: Linux
- SKU & size: B1 or above is recommended for production use.
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.
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
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.
cd ..
dotnet dasblog-core.dll init
dotnet dasblog-core.dll config root https://yoursitename.azurewebsites.net
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
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.
If you have additional questions or concerns please submit an issue.