Browse Source

Recreate storage symlink if lost

pull/43/head
Chris 7 years ago
parent
commit
a2aac1f33c
  1. 4
      app/Providers/AppServiceProvider.php

4
app/Providers/AppServiceProvider.php

@ -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);
} }

Loading…
Cancel
Save