2024.12.01 18:38:18

This commit is contained in:
Christian Moser 2024-12-01 18:38:18 +01:00
parent 7da2ac7d2a
commit b977714ca3

View File

@ -751,7 +751,7 @@ abstract class WebrootSetupController extends AbstractController
}
public function writeDotEnvLocal(array $data,bool $generate_app_secret=true) {
$file = fopen(join(DIRECTORY_SEPARATOR,[$this->project_dir,".env.local"]),"w");
fwrite($file,"ENV=" . $data["env"] . "\n");
fwrite($file,"APP_ENV=" . $data["env"] . "\n");
if ($generate_app_secret) {
fwrite($file,"APP_SECRET=\"" . $this->generateRandomString(60) . "\"\n");