Sitecore / docker-tools

Sitecore Docker Tools are utilities which assist Sitecore developers in initializing and running containerized Sitecore environments.
MIT License
27 stars 17 forks source link

Added additional Unit Tests to identify a bug on "Get-EnvFileVariable" #39

Closed peternazarov closed 2 years ago

peternazarov commented 2 years ago

Added additional Unit Tests to identify a bug on Issue #38 "Get-EnvFileVariable"

peternazarov commented 2 years ago

Possible workaround: Always provide "-Path" parameter and ensure that you pass an absolute path value.

$envFileAbsolutePath = $(Get-Item -Path ".env").FullName

$compose_project_name = Get-EnvFileVariable -Variable "COMPOSE_PROJECT_NAME" -Path $envFileAbsolutePath

$status = Invoke-RestMethod "http://localhost:8079/api/http/routers/cm-$comp