rocketeers / rocketeer

Send your projects up in the clouds
http://rocketeer.autopergamene.eu/
MIT License
2.66k stars 217 forks source link

nginx symlink caching issue #771

Open sweebee opened 6 years ago

sweebee commented 6 years ago

After each deploy i run php -r "opcache_reset();" and i've added

fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $realpath_root;

to /etc/nginx/fastcgi.conf

But it still redirects to the old release. What is the best way to solve this?

Anahkiasen commented 6 years ago

You can use cachetool (by pulling the PHAR during deploy) which has an opcache:clear command that should work in theory

sweebee commented 6 years ago

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.