2024.12.01 18:38:18
This commit is contained in:
parent
7da2ac7d2a
commit
b977714ca3
@ -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");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user