Merge branch 'devel/chris'

This commit is contained in:
Christian Moser 2024-12-01 18:38:59 +01:00
commit e6e824ab1a

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");