Git Deploy on Azure WebApp - Eonic/ProteanCMS GitHub Wiki
We recommend setting up a Filestore on Azure Storage and mounting it to the webapp. this allows you to have multiple deployment slots or app sharing the same files.
Create a Storage Account Create a FileShare call it ProteanCMS
in the webapp go to
Settings > Configuration > Path Mappings
Scroll down to add storage mount
pick the account and fileshare and call it proteancms
Authenticate with your Git repos - Azure Repos | Microsoft Learn
Create a folder for ProteanCMS and mount it so you have
/mounts/ProteanCMS
You need to use azure portal to open a powershell window to the web app then in Advacned Tools > Go go to Debug Console > Powershell
Get a PAT from your Azure Repo. `` run the following script
cd..
cd mounts/proteancms
mkdir production
cd production
git init
git config core.sparseCheckout true
@"
V6_wwwroot/ptn/
V6_wwwroot/bin/
wwwroot/ewcommon/
"@ | Out-File .git/info/sparse-checkout -Encoding ascii
$Pat = '#########'
$RepoUrl = "https://:[email protected]/ProteanCMS/_git/ProteanCMS"
git remote add origin https://:[email protected]/ProteanCMS/_git/ProteanCMS
git -c credential.helper= fetch origin
git checkout -B "General Development" "refs/remotes/origin/General Development"