Skip to content

JonatanTorino/DevAxCmmUtils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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