How to run a Symfony application on a read-only system, where ‘var/cache’ can’t be written into?

How to run a Symfony application on a read-only system, where ‘var/cache’ can’t be written into?

I’m trying to configure my Symfony 5 application to be run in a read-only system.

But despite configuring it to use Memcached instead of the filesystem for the cached data that is usually written in the application var/cache directory
(according to the documentation, all I need to do is to change the cache adapter for the system cache pool and for the app cache pool if desired), I find that Symfony continues writing to var/cache.

What am I missing? How can I deploy the application in a read only system?

Source: Symfony Questions

Leave a Reply

Your email address will not be published. Required fields are marked *