Hi,
How can I force OLS to follow symlink location even when the location changes without restarting the service?
This is the app structure:
document root: /srv/app/www/current
current is a symlink to /srv/app/www/releases/XXXXXX
Everytime the client do a deploy, XXXX value changes:
The problem is OLS continue to follow to the old location, in this example, 1574800917. I enabled debug and this is the line showing OLS is searching for the file in the wrong location:
2019-11-26 17:42:24.245871 [DEBUG] [127.0.0.1:59178] (stat)File not found [/srv/app/www/releases/1574800917/teste.php].
Thanks!
How can I force OLS to follow symlink location even when the location changes without restarting the service?
This is the app structure:
document root: /srv/app/www/current
current is a symlink to /srv/app/www/releases/XXXXXX
Everytime the client do a deploy, XXXX value changes:
Code:
lrwxrwxrwx 1 atencil atencil 39 Nov 26 17:42 current -> /srv/app/www/releases/1574800921
drwxrwxr-x 5 atencil atencil 4096 Nov 26 17:42 releases
Code:
root@ip-45-33-5-59:/srv/app/www# ls -l releases/
total 12
drwxrwxr-x 14 atencil atencil 4096 Nov 26 17:41 1574800904
drwxrwxr-x 14 atencil atencil 4096 Nov 26 17:41 1574800917
drwxrwxr-x 14 atencil atencil 4096 Nov 26 17:42 1574800921
2019-11-26 17:42:24.245871 [DEBUG] [127.0.0.1:59178] (stat)File not found [/srv/app/www/releases/1574800917/teste.php].
Thanks!