Ladislav Margai
Ladislav Margai

Reputation: 1984

Pre-compile site in continuous deployment using GIT in Azure App Service

Is there any way to pre-compile whole website during continuous deployment in Azure App Service (former Azure Websites)?

There are no related settings for publishing in Deployment source configuration UI.

Upvotes: 1

Views: 4395

Answers (1)

David Ebbo
David Ebbo

Reputation: 43203

You should be able to achieve this using a Kudu custom deployment script.

This is discussed here, which has examples on how you might call aspnet_compiler.exe to achieve that (which is the same way you'd do it locally).

Upvotes: 2

Related Questions