Logo

copyWSL.ps1

cd Deployment\appRootDir

# Target Directory in WSL
$targetDir = "\\wsl$\Ubuntu\var\www\appRootDir\"

echo "Copy fronted ...."
$sourceDir = "clientDir" 
Copy-Item -Path $sourceDir -Destination $targetDir -Recurse -Force

echo "Copy backend ...."
$sourceDir = "serverDir" 
Copy-Item -Path $sourceDir -Destination $targetDir -Recurse -Force

cd ..\.. # back to root