Did you remember to run all the commands? composer install, create env, generate key ?
Feb 20, 2020
14
Level 8
Laravel-boilerplate - RuntimeException: A facade root has not been set.
I have used the boilerplate ion my app and everything was fine until I tried to deploy it using Cloudways
I get a blank page and the logs show the following error:
[Thu Feb 20 07:42:43.864771 2020] [proxy_fcgi:error] [pid 11114] [client 46.189.69.156:32802] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught RuntimeException: A facade root has not been set. in /home/363286.cloudwaysapps.com/dujbzkuhwg/public_html/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:236\nStack trace:\n#0
/home/363286.cloudwaysapps.com/dujbzkuhwg/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(407): Illuminate\Support\Facades\Facade::__callStatic('replaceNamespac...', Array)\n#1
/home/363286.cloudwaysapps.com/dujbzkuhwg/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(384): Illuminate\Foundation\Exceptions\Handler->registerErrorViewPaths()\n#2
/home/363286.cloudwaysapps.com/dujbzkuhwg/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(295): Illuminate\Foundation\Exceptions\Handler->renderHttpException(Object(Symfony\Component\HttpKernel\Exception\HttpException))\n#3
/home/363286.cloudwaysapps.com/dujbzkuhwg/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Ex...\n'
I have been searching the Internet and trying in my application without success.
I have deployed a fresh Laravel install with the boilerplate with the same results which makes me believe it is not an issue related to my code.
Any idea how to proceed?
Level 102
You need to run those commands on the server as well
composer install
cp .env.example .env
php artisan key:generate
Please or to participate in this conversation.