Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

psutinrerk's avatar

bootstrap/cache/config.php, use Wrong path on production server

Hello,

I try to deploy my site to production server, I edit the .env file but the /bootstraps/cache/config.php is using the path from my Local development cause the application errors

I try to run php artisan config:clear php artisan config:cache

but nothing work, I have to go manually update all the path in bootstrap/cache/config.php file directly (include the APP-KEY)

Any Idea how to fix this?

Thank you

0 likes
2 replies
VizuaaLOG's avatar

I think you need to create the cache after deploying the site to your production server, it should be done as part of the deployment process.

Please or to participate in this conversation.