Skip to content

Commit

Permalink
feat: 4bitcss Container.Start.ps1 ( Fixes #76 )
Browse files Browse the repository at this point in the history
Starting Jekyll in ThreadJob
James Brundage committed Sep 29, 2024
1 parent 61ca946 commit 8a490af
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Container.start.ps1
Original file line number Diff line number Diff line change
@@ -52,6 +52,21 @@ if ($args) {
# If there is a Microservice.ps1, run it.
. ./Microservice.ps1
}
#region Custom
else
{
Start-ThreadJob -Name "${env:ModuleName}.Jekyll" -ScriptBlock {
Push-Location ./docs
jekyll serve --host "$(
if ($env:JEKYLL_HOST) { $env:JEKYLL_HOST }
else { '*' }
)" '--port' $(
if ($env:JEKYLL_PORT) { $env:JEKYLL_PORT }
else { 4000 }
)
}
}
#endregion Custom
}

# If you want to do something when the container is stopped, you can register an event.

0 comments on commit 8a490af

Please sign in to comment.