mirror of
https://github.com/linuxserver/Heimdall.git
synced 2025-12-07 23:44:17 +09:00
Recreate storage symlink if lost
This commit is contained in:
@@ -26,7 +26,6 @@ class AppServiceProvider extends ServiceProvider
|
|||||||
// first time setup
|
// first time setup
|
||||||
touch(database_path('app.sqlite'));
|
touch(database_path('app.sqlite'));
|
||||||
Artisan::call('migrate', array('--path' => 'database/migrations', '--force' => true, '--seed' => true));
|
Artisan::call('migrate', array('--path' => 'database/migrations', '--force' => true, '--seed' => true));
|
||||||
Artisan::call('storage:link');
|
|
||||||
//Cache
|
//Cache
|
||||||
//Artisan::call('config:cache');
|
//Artisan::call('config:cache');
|
||||||
//Artisan::call('route:cache');
|
//Artisan::call('route:cache');
|
||||||
@@ -50,6 +49,9 @@ class AppServiceProvider extends ServiceProvider
|
|||||||
\App::setLocale($lang);
|
\App::setLocale($lang);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
if(!is_file(public_path('storage'))) {
|
||||||
|
Artisan::call('storage:link');
|
||||||
|
}
|
||||||
view()->share('alt_bg', $alt_bg);
|
view()->share('alt_bg', $alt_bg);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user