Historically, GitLab has been storing shared files in many different
directories: public/uploads
, builds
, tmp/repositories
, tmp/rebase
(EE),
etc. Having so many shared directories makes it difficult to deploy GitLab on
shared storage (e.g. NFS). Working towards GitLab 9.0 we are consolidating
these different directories under the shared
directory.
This means that if GitLab will start storing puppies in some future version
then we should put them in shared/puppies
. Temporary puppy files should be
stored in shared/tmp
.
In the GitLab application code you can get the full path to the shared
directory with Gitlab.config.shared.path
.
Files that belong to only one process, or on only one server, should not go in
shared
. Examples include PID files and sockets.
Sometimes you create a temporary file on disk with the intention of it becoming 'official'. For example you might be first streaming an upload from a user to disk in a temporary file so you can perform some checks on it. When the checks pass, you make the file official. In scenarios like this please follow these rules:
shared/tmp
, i.e. on the same filesystem you
want the official file to be on.Вы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Опубликовать ( 0 )