Search code examples
gitazureazure-web-app-servicedokuwiki

Host git-backed DocuWiki on Azure Web Sites


I have published a DocuWiki instance on an Azure Web Site with no trouble, following instructions here.

I want to set it up so that content changes by my users (i.e. independent from configuration changes to the site by my admins) will result in commits to a git repository. The gitbacked plugin seems to do exactly what I want. However, on its installation page it mentions:

Note that this plugin only works if you have a git executable available at /usr/bin/git so it requires modifications to the Git wrapper script when you run a chrooted server or don't use linux.

I am not the most seasoned Azure Web Sites administrator, although I understand I am basically running on some form of Shared IIS. Has anyone out there gone through this scenario before and knows what I have to do? I imagine the components of this solution include at least the following after installing the gitbacked plugin:

  1. Set up my pages, media, and metadata directories to live outside of the main data directory in the DocuWiki structure as recommended by the gitbacked documentation.
  2. Add git executable to the site with adequate permissions to manage the content, or modify the gitbacked wrapper script to use the git executable that Azure Websites can use to manage deployment for the entire site.

Thanks in advance for help you can provide.


Solution

  • Git is already installed on all Azure Websites, so it'll probably be easier for you to just modify the wrapper script