chore: update deploy.ps1
start containers with restart always option.
This commit is contained in:
+1
-1
@@ -9,7 +9,7 @@ function StartContainer
|
||||
|
||||
$containerName = "blog.stevanfreeborn.com.$containerColor"
|
||||
$postDirEnv = "FilePostServiceOptions__PostsDirectory=wwwroot/posts"
|
||||
$containerId = docker run -d -p 8080 --name $containerName --env $postDirEnv $dockerTag
|
||||
$containerId = docker run -d --restart always -p 8080 --name $containerName --env $postDirEnv $dockerTag
|
||||
|
||||
if ($LASTEXITCODE -ne 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user