Open sweebee opened 6 years ago
You can use cachetool (by pulling the PHAR during deploy) which has an opcache:clear
command that should work in theory
The problem with that is that it requires root access.
I found a different solution that seems to work. I've created a php file with
<?php
opcache_reset();
and call it with curl.
After each deploy i run
php -r "opcache_reset();"
and i've addedto
/etc/nginx/fastcgi.conf
But it still redirects to the old release. What is the best way to solve this?