mirror of
https://github.com/sameersbn/docker-gitlab.git
synced 2026-01-18 13:58:25 +00:00
cache compiled assets to boost application startup
This commit is contained in:
parent
1be9fe79b3
commit
f0c0d48fc5
@ -1,6 +1,7 @@
|
||||
# Changelog
|
||||
|
||||
**latest**
|
||||
- cache compiled assets to boost application startup.
|
||||
- fix symlink to uploads directory
|
||||
|
||||
**6.8.1**
|
||||
|
||||
@ -268,6 +268,10 @@ sudo -u git -H mkdir -p /home/git/data/gitlab-satellites/
|
||||
find /home/git/data/gitlab-satellites/ -type d -print0 | sudo xargs -0 chmod u+rwx,g+rx-sw,o-rwx
|
||||
chown git:git /home/git/data/gitlab-satellites
|
||||
|
||||
# create the assets cache directory
|
||||
sudo -u git -H mkdir -p /home/git/data/cache/
|
||||
chown git:git /home/git/data/cache/
|
||||
|
||||
# create the backups directory
|
||||
sudo -u git -H mkdir -p /home/git/data/backups/
|
||||
chown git:git /home/git/data/backups/
|
||||
|
||||
@ -50,6 +50,10 @@ sudo -u git -H cp config/initializers/smtp_settings.rb.sample config/initializer
|
||||
sudo -u git -H mkdir -p tmp/pids/ tmp/sockets/
|
||||
chmod -R u+rwX log tmp
|
||||
|
||||
# create symlink to assets cache
|
||||
rm -rf tmp/cache
|
||||
sudo -u git -H ln -s /home/git/data/cache tmp/cache
|
||||
|
||||
# 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