Hot reload nginx after pruning cache
This commit is contained in:
parent
6e642a8c2b
commit
12fffc28e2
|
@ -0,0 +1 @@
|
|||
- Hot reload Nginx after pruning cache files.
|
|
@ -2,5 +2,8 @@
|
|||
|
||||
# We execute the nginx cache pruning subscript from docker container so that we
|
||||
# can run the pruning script in user crontab without sudo.
|
||||
|
||||
docker run --rm -v /home/user:/home/user bash /home/user/skynet-webportal/scripts/lib/nginx-prune-cache-subscript.sh
|
||||
|
||||
# Some cache files are deleted, but are kept open, we hot reload nginx to get
|
||||
# them closed and removed from filesystem.
|
||||
docker exec nginx nginx -s reload
|
||||
|
|
Reference in New Issue