Update configuration-cache in production

materix
Backer | 82
+
0
-

Every time I deploy a modified “services.neon” to production (debug-mode is false), then I need to delete the “/temp/cache/configuration”-folder to make it work.

If I switch debug-mode to true then it works, but of-course I must not do that with a live-server.

What procedure do you recommend, when updating code running in production?

Infanticide0
Member | 99
+
+1
-

just delete cache folder after the deploy is complete

Marek Bartoš
Nette Blogger | 1245
+
0
-

What procedure do you recommend, when updating code running in production?

delete the “/temp/cache/configuration”

If I switch debug-mode to true then it works

It works only for debug mode. Non-debug has different DI container that is still fully cached

materix
Backer | 82
+
+1
-

Thanks! Good to know that what I am doing, is also done by the pros 🙂