Skip to content

Commit fca5489

Browse files
committed
Fix APP_KEY generation in start.bat.
1 parent de1c467 commit fca5489

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

start.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ if "%APP_KEY%"=="" (
7272
echo No application key set. A new key will be generated automatically.
7373

7474
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 (
75-
set APP_KEY=%%i
75+
set "APP_KEY=%%i"
7676
)
7777

7878
powershell -Command "(Get-Content 'configs\core\.env') | ForEach-Object {$_ -replace '\bAPP_KEY=.*', 'APP_KEY=base64:!APP_KEY!'} | Set-Content 'configs\core\.env'"

0 commit comments

Comments
 (0)