Skip to content

Commit

Permalink
Update InstallProjectCommand.php
Browse files Browse the repository at this point in the history
原先写法,会导致mac系统中,env文件写入缺失 SUPER_ADMIN = 1,可能是换行或空格的因素影响
  • Loading branch information
luckydog-sunny authored Jun 3, 2024
1 parent fdd93f2 commit 6ee50ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Command/InstallProjectCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,11 @@ protected function initUserData(): void
'user_id' => $superAdminId,
'role_id' => $superRoleId,
]);
file_put_contents(BASE_PATH . '/.env', <<<ENV
$envConfig = <<<ENV
SUPER_ADMIN = {$superAdminId}
ADMIN_ROLE = {$superRoleId}
ENV
, FILE_APPEND);
ENV;
file_put_contents(BASE_PATH . '/.env', $envConfig, FILE_APPEND);
}

protected function finish(): void
Expand Down

0 comments on commit 6ee50ba

Please sign in to comment.