Statiq.Web icon indicating copy to clipboard operation
Statiq.Web copied to clipboard

Create Azure Web Sites Extension

Open daveaglick opened this issue 9 years ago • 4 comments

Looks like these could be used to add GitHub Pages-like capability to Azure for Wyam: https://azure.microsoft.com/en-us/blog/azure-web-sites-extensions/

daveaglick avatar Mar 09 '16 20:03 daveaglick

My pleasure ;-)

MaximRouiller avatar Mar 09 '16 20:03 MaximRouiller

This looks interesting. I run Wyam on Azure Web Apps and have some configurations that we can use. Also I am looking at SyntaxC4's Jekyll Extension (and old-ee but good-ee) https://github.com/SyntaxC4-MSFT/JekyllExtension

I think a Wyam extension would be even simpler. @daveaglick would this code be included in this repo? Or a new repo?

tylerd avatar Dec 13 '19 15:12 tylerd

It might be time to retire this issue, or at least re-purpose it. Statiq actually has a DeployAppService module now! https://github.com/statiqdev/Statiq.Framework/blob/master/src/extensions/Statiq.Azure/DeployAppService.cs

Beyond deployment, I'd be curious what other use cases exist for interaction with Azure Web Site and/or these extensions. What capabilities would we get from it (or was deployment the purpose of this issue)? Not saying there aren't more cool things we could do - just don't have a good feel for what those are.

daveaglick avatar Dec 13 '19 15:12 daveaglick

Interesting..

Yes, there would be 2 directions IMHO, deploying from a repo (using Kudu deployment engine), and pushing content from a build/deploy system (which is what Statiq seems to support above)

I git push update my Azure Web Site blog and I have 2 files in my repo that an extension would remove.

  1. A custom deploy.ps1 file that "installs" Wyam and generates the site to the wwwroot folder
  2. A web.config file in the /input folder of my repo, configured to static sites and maybe a couple of redirects (from my old blog url formats)

The repo is not public, but I can post the files here if needed

tylerd avatar Dec 13 '19 16:12 tylerd