You are getting ready to upload a website from a GitHub repository to an Azure Web App. The webpage contains script-generated static content.
You want to make use of the continuous deployment function for Azure Web Apps.
Before the website begins to serve traffic, the static generating script must be run.
What are the two potential means through which this can be done? Each accurate response offers an entire resolution.
NOTE: There are two (2) answers in this question.
-
A
Add a PreBuild target in the websites csproj project file that runs the static content generation script.
-
B
Add the path to the static content generation tool to WEBSITE_RUN_FROM_PACKAGE setting in the host.json file.
-
C
Create a file named .deployment in the root of the repository that calls a script which generates the static content and deploys the website.
-
D
Create a file named run.cmd in the folder /run that calls a script which generates the static content and deploys the website.