Check to make sure there's a .env file
While i was testing this, i noticed that it ran right by the .env check, even though i don't have a .env file at all. The script checks for a _bad_ .env, but not a missing one. Now it does
This commit is contained in:
parent
32605578dd
commit
2ee8639eaf
1 changed files with 6 additions and 0 deletions
|
@ -55,6 +55,12 @@ echo "--------------------------------------------------------\n\n";
|
|||
|
||||
// Check the .env looks ok
|
||||
$env = file('.env');
|
||||
if (! $env){
|
||||
echo "\n!!!!!!!!!!!!!!!!!!!!!!!!!! .ENV FILE ERROR !!!!!!!!!!!!!!!!!!!!!!!!!!\n";
|
||||
echo "Your .env file doesn't seem to exist in this directory or isn't readable! Please look into that.\n";
|
||||
exit(1);
|
||||
}
|
||||
|
||||
$env_good = '';
|
||||
$env_bad = '';
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue