I tried pulling my latest DB and this is what I get now. Nothing except the home page (localhost/public) is working
Uncaught (in promise) TypeError: ServiceWorker script at http://localhost/public/sw for scope http://localhost/public/ encountered an error during installation.
Config.php
<?php return array (
'debug' => false,
'database' =>
array (
'driver' => 'mysql',
'host' => 'localhost',
'port' => 3306,
'database' => 'tal91714_db',
'username' => 'tal91714_db',
'password' => 'P@123456',
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'prefix' => '',
'strict' => false,
'engine' => 'InnoDB',
'prefix_indexes' => true,
),
'url' => 'http://localhost/public',
'paths' =>
array (
'api' => 'api',
'admin' => 'admin',
),
);
site.php
`<?php
/*
- This file is part of Flarum.
*
- For detailed copyright and license information, please view the
- LICENSE file that was distributed with this source code.
*/
/*
|-------------------------------------------------------------------------------
| Load the autoloader
|-------------------------------------------------------------------------------
|
| First, let's include the autoloader, which is generated automatically by
| Composer (PHP's package manager) after installing our dependencies.
| From now on, all classes in our dependencies will be usable without
| explicitly loading any files.
|
*/
require DIR.'/vendor/autoload.php';
/*
|-------------------------------------------------------------------------------
| Configure the site
|-------------------------------------------------------------------------------
|
| A Flarum site represents your local installation of Flarum. It can be
| configured with a bunch of paths:
|
| - The base path is Flarum's root directory and contains important files
| such as config.php and extend.php.
| - The public path is the directory that serves as document root for the
| web server. Files in this place are accessible to the public internet.
| This is where assets such as JavaScript files or CSS stylesheets need to
| be stored in a default install.
| - The storage path is a place for Flarum to store files it generates during
| runtime. This could be caches, session data or other temporary files.
|
| The fully configured site instance is returned to the including script, which
| then uses it to boot up the Flarum application and e.g. accept web requests.
|
*/
return Flarum\Foundation\Site::fromPaths([
'base' => DIR,
'public' => DIR.'/public',
'storage' => DIR.'/storage',
]);
`