debian-mirror-gitlab/doc/raketasks/features.md

23 lines
711 B
Markdown
Raw Normal View History

2020-05-24 23:13:21 +05:30
# Namespaces **(CORE ONLY)**
This Rake task enables [namespaces](../user/group/index.md#namespaces) for projects.
2014-09-02 18:07:02 +05:30
## Enable usernames and namespaces for user projects
2020-05-24 23:13:21 +05:30
This command will enable the namespaces feature introduced in GitLab 4.0. It will move every project in its namespace folder.
2014-09-02 18:07:02 +05:30
Note:
2020-05-24 23:13:21 +05:30
- The **repository location will change**, so you will need to **update all your Git URLs** to
point to the new location.
- The username can be changed at **Profile > Account**.
2014-09-02 18:07:02 +05:30
2020-05-24 23:13:21 +05:30
For example:
2014-09-02 18:07:02 +05:30
2020-05-24 23:13:21 +05:30
- Old path: `git@example.org:myrepo.git`.
- New path: `git@example.org:username/myrepo.git` or `git@example.org:groupname/myrepo.git`.
2014-09-02 18:07:02 +05:30
2020-04-08 14:13:33 +05:30
```shell
2014-09-02 18:07:02 +05:30
bundle exec rake gitlab:enable_namespaces RAILS_ENV=production
```