mirror of
https://github.com/sameersbn/docker-gitlab.git
synced 2026-01-18 13:58:25 +00:00
cache public/assets in local cache at /home/git/data/tmp/
This commit is contained in:
parent
8296235575
commit
b4196eca4f
@ -276,6 +276,10 @@ chmod -R u+rwX /home/git/data/tmp/
|
||||
sudo -u git -H mkdir -p /home/git/data/tmp/cache/
|
||||
chown git:git /home/git/data/tmp/cache/
|
||||
|
||||
# create the public/assets directory
|
||||
sudo -u git -H mkdir -p /home/git/data/tmp/public/assets/
|
||||
chown git:git /home/git/data/tmp/public/assets/
|
||||
|
||||
# remove old cache directory (remove this line after a few releases)
|
||||
rm -rf /home/git/data/cache
|
||||
|
||||
|
||||
@ -54,6 +54,10 @@ chmod -R u+rwX log tmp
|
||||
rm -rf tmp/cache
|
||||
sudo -u git -H ln -s /home/git/data/tmp/cache tmp/cache
|
||||
|
||||
# create symlink to assets in public/assets
|
||||
rm -rf public/assets
|
||||
sudo -u git -H ln -s /home/git/data/tmp/public/assets public/assets
|
||||
|
||||
# create symlink to uploads directory
|
||||
rm -rf public/uploads
|
||||
sudo -u git -H ln -s /home/git/data/uploads public/uploads
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user