Can't figure this one out. I'm hosting my Laravel site on Digital Ocean. To deploy the site I user deployer from deployer.org and their Laravel Recipe. Havn´t really changed anything in their config but whan I deploy I can visit the startpage just fine but any other page renders a 500 error. What gives?
UPDATE:
Hi all! the .env file seems fine, it has a KEY and all seemt to be OK there. However, I'm getting this from the nginx error log:
PHP message: PHP Fatal error: Uncaught ErrorException: file_put_contents(/var/www/html/mymoodloop.com/shared/storage/framework/views/d4454779c3105d08ab77675858536547a95ae530.php): failed to open stream: Permission denied in /var/www/html/mymoodloop.com/releases/9/vendor/laravel/f$
Stack trace:
#0 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'file_put_conten...', '/var/www/html/m...', 122, Array)
#1 /var/www/html/mymoodloop.com/releases/9/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(122): file_put_contents('/var/www/html/m...', '<?php $__env->s...', 0)
#2 /var/www/html/mymoodloop.com/releases/9/vendor/laravel/framework/src/Illuminate/View/Compilers/BladeCompiler.php(122): Illuminate\Filesystem\Filesystem->put('/var/www/html/m...', '<?php $__env->s...')
#3 /var/www/html/mymoodloop.com/releases/9/vendor/laravel/framework/src/Illu
And here's the permissions for the storage folder:
drwxr-sr-x+ 5 deployer www-data 4096 Jan 7 13:26 storage