CodeConnect / SourceBrowser

C# in. HTML out.
http://sourcebrowser.io
MIT License
91 stars 22 forks source link

Make Site Extension for Azure Web Apps #112

Open jefking opened 9 years ago

jefking commented 9 years ago

Kudu Site Extensions: https://github.com/projectkudu/kudu/wiki/Azure-Site-Extensions

jefking commented 9 years ago

Sample Project: https://github.com/projectkudu/FileCounterSiteExtension

AmadeusW commented 9 years ago

Is Kudu a host program that lives within Azure and loads extensions? Or did you just use it as template code?

jefking commented 9 years ago

This is Kudu that runs all the extensions. I found out that this will only work for sites that deploy using Git (which makes sense).

Next we need to have the Web app read off the local repository. Pathing looks like this: \site\repository\

jefking commented 9 years ago

To deploy to an Azure website as an extension you currently need to:

Publishing: creates directory in /SiteExtension/PublishProfiles/... Runing batch: creates zip to deploy; and deploys to specified Kudu site.

jefking commented 9 years ago

I have just confirmed that we can read the Git repository from the web app. I just need some help wiring up this directory as being the source directory!

AmadeusW commented 9 years ago

Does every website/web app have a git repository? I will run try tomorrow morning on my website. What's the directory path?

AmadeusW commented 9 years ago

Check out SourceBrowser.Samples project for how to supply the path and start SourceBrowser. I'll check out your fork and see where you are.