HOW_TO_USE_DOCKER.md - Missing -ItemType File for .env creation (#879)

Update HOW_TO_USE_DOCKER.md

Missing New-Item -ItemType for .env default to a folder when it should be a file (Docker won't run when that happen since a file is expected)
This commit is contained in:
Francis Mercier 2024-03-08 19:40:27 -05:00 committed by GitHub
parent 0117589bbf
commit c472598bfc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -75,7 +75,7 @@ mintplexlabs/anythingllm
# Run this in powershell terminal
$env:STORAGE_LOCATION="$HOME\Documents\anythingllm"; `
If(!(Test-Path $env:STORAGE_LOCATION)) {New-Item $env:STORAGE_LOCATION -ItemType Directory}; `
If(!(Test-Path "$env:STORAGE_LOCATION\.env")) {New-Item "$env:STORAGE_LOCATION\.env"}; `
If(!(Test-Path "$env:STORAGE_LOCATION\.env")) {New-Item "$env:STORAGE_LOCATION\.env" -ItemType File}; `
docker run -d -p 3001:3001 `
--cap-add SYS_ADMIN `
-v "$env:STORAGE_LOCATION`:/app/server/storage" `