Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
610 views
in Technique[技术] by (71.8m points)

git - Azure websites deploy specific web project

I have a solution with multiple web projects. I want to run them inside Azure Websites, each as a separate website, from the same Git repository.

How do I specify which website runs which web project?

AppHarbor handles this with multiple solution files named after the applications, containing the respective web project. I cannot find anything about Azure websites.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Now it is as simple as using App.Settings instead of a .deployment file.

This also allows for multi-project solutions in one Repo, so for example, if you have a WebAPI and a Web App in one solution you can configure an Azure Web Site to deploy a specific project. like so:

Azure App.Settings Example

Source: https://github.com/projectkudu/kudu/wiki/Customizing-deployments#using-app-settings-instead-of-a-deployment-file

I have tried this and works a treat.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...