I just updated my Laravel application to 6.0 to use the new tool Vapor. However, after the deployment process end, I get this error when i access the app using the vanity url:
ErrorException thrown with message
"file_put_contents(/tmp/storage/framework/sessions/cqDlEgxQSwsYKnBGpPjv94Dvzasa0ECmqF1Rl9xV):
failed to open stream: No such file or directory"
Do you have some ideas about the reason of this error? Thank you
The best way to solve this problem is, go to directory laravel/bootstrap/cache
and delete config.php
file.
Use this command to clear cache
make permission to write cache
php artisan config:cache
chmod -R 777 storage/
composer dump-autoload
I faced the same issue while deploying a Laravel app using Vapor.
And solved it by
BROADCAST_DRIVER=log
CACHE_DRIVER=file
SESSION_DRIVER=dynamodb
SESSION_LIFETIME=9999
QUEUE_DRIVER=sync
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.