Laravel problem with cache file when deploy to heroku

Published

Im using laravel 8 and i want to use command "php artisan optimize" to cache config and route of my app after deploy app from github to heroku. The problem is i dont know how where should i put that command in. I tried to put into composer.json file and run the script in the Procfile follow by this post (link below). It did run the command but i didnt see any cache files were created in bootstrap/cache/ directories. Can someone tell me what to do. And if i create these cache file, i wonder if heroku will remove it from app after a specific time because it is not a permantlty file from github.

https://dev.to/autoidle/laravel-deployment-optimization-on-heroku-1hkc

Thank you!

Source: Laravel

Published
Categorised as caching, heroku, laravel, php Tagged , , ,

Answers

Leave a Reply

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq