Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'doc/administration/raketasks/uploads/migrate.md')
-rw-r--r--doc/administration/raketasks/uploads/migrate.md16
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/administration/raketasks/uploads/migrate.md b/doc/administration/raketasks/uploads/migrate.md
index aef15e3f388..adef6251a27 100644
--- a/doc/administration/raketasks/uploads/migrate.md
+++ b/doc/administration/raketasks/uploads/migrate.md
@@ -17,13 +17,13 @@ described in the next section.
**Omnibus Installation**
-```bash
+```shell
gitlab-rake "gitlab:uploads:migrate:all"
```
**Source Installation**
-```bash
+```shell
sudo RAILS_ENV=production -u git -H bundle exec rake gitlab:uploads:migrate:all
```
@@ -52,7 +52,7 @@ Variable | Type | Description
**Omnibus Installation**
-```bash
+```shell
# gitlab-rake gitlab:uploads:migrate[uploader_class, model_class, mount_point]
# Avatars
@@ -80,7 +80,7 @@ gitlab-rake "gitlab:uploads:migrate[FileUploader, MergeRequest]"
>**Note:**
Use `RAILS_ENV=production` for every task.
-```bash
+```shell
# sudo -u git -H bundle exec rake gitlab:uploads:migrate
# Avatars
@@ -112,13 +112,13 @@ To migrate all uploads created by legacy uploaders, run:
**Omnibus Installation**
-```bash
+```shell
gitlab-rake gitlab:uploads:legacy:migrate
```
**Source Installation**
-```bash
+```shell
bundle exec rake gitlab:uploads:legacy:migrate
```
@@ -145,13 +145,13 @@ keeping in mind the task name in this case is `gitlab:uploads:migrate_to_local`.
**Omnibus Installation**
-```bash
+```shell
gitlab-rake "gitlab:uploads:migrate_to_local:all"
```
**Source Installation**
-```bash
+```shell
sudo RAILS_ENV=production -u git -H bundle exec rake gitlab:uploads:migrate_to_local:all
```