Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
public:redmine2 [2019/01/22 15:26] fmichel [Project and Repositories management] |
public:redmine2 [2020/03/06 09:45] fmichel [Project and Repositories management] |
||
---|---|---|---|
Line 46: | Line 46: | ||
Projects managers can create sub-projects of the projects they manage and assign users. | Projects managers can create sub-projects of the projects they manage and assign users. | ||
- | <note important>**GIT** and **SVN** repositories CAN be declared using the web interface but this does NOT create them on the server. They must be created manually using CLI => ask [[fmichel@i3s.unice.fr|Franck]] to do it for you.</note> | + | <note important>**GIT** and **SVN** repositories can be DECLARED using the web interface but this DOES NOT CREATE them on the server. They must be created manually using CLI => ask [[fmichel@i3s.unice.fr|Franck]] to do it for you.</note> |
Note that **only one repository can be created for each project, its directory name must be the same as the project's identifier.** | Note that **only one repository can be created for each project, its directory name must be the same as the project's identifier.** | ||
Line 56: | Line 56: | ||
=== Git repositories === | === Git repositories === | ||
- | **Identifier**: either empty of same as the project's identifier | + | **Identifier**: either empty or same as the project's identifier |
- | **Path**: ''/var/lib/git/project_identifier.git'' | + | **Path**: ''/home/repos/project_identifier.git'' |
**URL**: ''https://redmine2.i3s.unice.fr/git/project_identifier.git'' | **URL**: ''https://redmine2.i3s.unice.fr/git/project_identifier.git'' | ||
+ | |||
+ | For a new project, the git repository must be created [[https://githowto.com/bare_repositories|"bare"]]. | ||
+ | To do so, connect on the redmine2 server (ssh) and do as follows: | ||
+ | <code> | ||
+ | cd /home/repos | ||
+ | cp -r git_bare_repo.git git/<project_identifier>.git | ||
+ | chown -R apache:apache git/<project_identifier>.git | ||
+ | </code> | ||
=== SVN repositories === | === SVN repositories === | ||
- | **Identifier**: either empty of same as the project's identifier | + | **Identifier**: either empty or same as the project's identifier |
**Path**: ''file:''''/''''/''''/var/lib/svn/project_identifier'' | **Path**: ''file:''''/''''/''''/var/lib/svn/project_identifier'' |