JonatanTorino / DevAxCmmUtils

Some utils tool for D365Commerce HQ
MIT License
0 stars 1 forks source link
d365commerce d365fo d365fo-tools

DevAxCmmRtsLog

Tool for log request and response between, RTS and RetailServer

Installation

Using Power Shell

Copy and past

# Task 1: Clone the repository
$repositoryUrl = "https://github.com/JonatanTorino/DevAxCmmUtils"
$localRepoPath = "K:\Axxon\GitHub.JonatanTorino\DevAxCmmUtils"
$modelName = "DevAxCmmUtils"

# Clone or pull the repository
git clone $repositoryUrl $localRepoPath | Wait-Process
# En caso que existiera previamente la carpeta, por las dudas ejecuto un pull
Set-Location $localRepoPath
git pull

Write-Host -ForegroundColor Yellow "Deteniendo todos los servicios de D365FO"
Stop-D365Environment

# Task 2: Create a symbolic link
$packagesLocalDirectory = "K:\AosService\PackagesLocalDirectory"
$targetPath = Join-Path $localRepoPath -ChildPath $modelName
$linkPath = Join-Path $packagesLocalDirectory -ChildPath $modelName

Write-Host -ForegroundColor Cyan "Remove existing directory if it exists $linkPath"
cmd /c rmdir /q /s $linkPath

Write-Host -ForegroundColor Cyan "Create a symbolic link to $targetPath"
New-Item -ItemType SymbolicLink -Path $linkPath -Target $targetPath

# Task 3: Compile the model
Write-Host -ForegroundColor Green "Executing the D365 module compile command: $modelName"
Invoke-D365ProcessModule -Module $modelName -ExecuteCompile -ExecuteSync

Write-Host -ForegroundColor Yellow "Iniciando el servicio del AOS de D365FO"
Start-D365Environment -Aos
Write-Host -ForegroundColor Yellow "Iniciando el servicio del BATCH de D365FO"
Start-D365Environment -Batch