mirror of
https://github.com/linuxserver/Heimdall.git
synced 2025-12-07 15:33:56 +09:00
if .env is missing copy example and generate key
This commit is contained in:
@@ -21,7 +21,7 @@ class AppServiceProvider extends ServiceProvider
|
||||
{
|
||||
|
||||
if(!is_file(base_path('.env'))) {
|
||||
touch(base_path('.env'));
|
||||
copy(base_path('.env.example'), base_path('.env'));
|
||||
Artisan::call('key:generate');
|
||||
}
|
||||
if(!is_file(database_path('app.sqlite'))) {
|
||||
|
||||
Reference in New Issue
Block a user