Skip to content

Commit

Permalink
docstrings added
Browse files Browse the repository at this point in the history
  • Loading branch information
Dawith committed Oct 8, 2025
1 parent 86a281c commit 9879577
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions winlaunch.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Setup script that imports local .env variable file and runs the docker
# container with the appropriate volume bind mount.

# Load environment variables from .env file
Get-Content .env | foreach {
$name, $value = $_.split('=')
if ([string]::IsNullOrWhiteSpace($name) -or $name.Contains('#')) {
Expand All @@ -6,6 +10,7 @@ Get-Content .env | foreach {
Set-Content env:\$name $value
}

# Docker environment launch
docker run --rm -it `
-v ${PWD}:/app/code `
-v ${env:DATAPATH}:/app/workdir `
Expand Down

0 comments on commit 9879577

Please sign in to comment.