From fca54895057157eda818068933f93c2c3ba10689 Mon Sep 17 00:00:00 2001 From: Brad Bayliss Date: Thu, 7 Mar 2024 17:17:25 +0000 Subject: [PATCH] Fix APP_KEY generation in start.bat. --- start.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/start.bat b/start.bat index d53c2c8..f0295f5 100644 --- a/start.bat +++ b/start.bat @@ -72,7 +72,7 @@ if "%APP_KEY%"=="" ( echo No application key set. A new key will be generated automatically. for /f "delims=" %%i in ('powershell -Command "$RandomBytes = New-Object byte[] 32; [Security.Cryptography.RNGCryptoServiceProvider]::Create().GetBytes($RandomBytes); $Base64String = [Convert]::ToBase64String($RandomBytes); Write-Output $Base64String"') do ( - set APP_KEY=%%i + set "APP_KEY=%%i" ) powershell -Command "(Get-Content 'configs\core\.env') | ForEach-Object {$_ -replace '\bAPP_KEY=.*', 'APP_KEY=base64:!APP_KEY!'} | Set-Content 'configs\core\.env'"