Wiki » Historique » Version 32
Patrice Nadeau, 2014-08-19 20:46
1 | 13 | Patrice Nadeau | %{font-size:18pt}Redmine% |
---|---|---|---|
2 | |||
3 | 30 | Patrice Nadeau | > Merge du fichier PDF : issue:#13 |
4 | 25 | Patrice Nadeau | |
5 | 13 | Patrice Nadeau | --- |
6 | |||
7 | 1 | Patrice Nadeau | {{toc}} |
8 | |||
9 | 13 | Patrice Nadeau | h1. Redmine |
10 | 6 | Patrice Nadeau | |
11 | 31 | Patrice Nadeau | Logiciel de gestion de projets, sources, bugs et timeline. |
12 | Contient un module de Wiki, de fichiers. |
||
13 | Supporte aussi les systèmes de version de fichier (Git, SVN entre autre). |
||
14 | Disponible à http://www.redmine.org/projects/redmine/wiki/Download |
||
15 | |||
16 | De base, ne fonctionne pas avec Apache |
||
17 | Pour une solution possible, voir : http://www.redmine.org/projects/redmine/wiki/HowTo_configure_Apache_to_run_Redmine |
||
18 | |||
19 | Sa principale difficulté d’installation et sa dépendance à Ruby. D’où le but de ce guide. |
||
20 | Voir aussi : |
||
21 | * http://bitnami.com/stack/redmine |
||
22 | * http://www.turnkeylinux.org/redmine |
||
23 | |||
24 | 6 | Patrice Nadeau | h1. Installation |
25 | |||
26 | 32 | Patrice Nadeau | Ce guide documente une installation GNU/Linux avec les version suivantes : |
27 | * openSUSE 13.1 |
||
28 | * Redmine 2.4.2 |
||
29 | |||
30 | 1 | Patrice Nadeau | h2. Prérequis |
31 | |||
32 | 32 | Patrice Nadeau | Un serveur LAMP openSUSE |
33 | |||
34 | Les logiciels suivants : |
||
35 | |||
36 | * libmysqlclient-devel |
||
37 | * mysql-community-server |
||
38 | * ruby-2.0 |
||
39 | * ruby20-devel |
||
40 | * rubygem-bundler |
||
41 | * rubygem-mysql2 |
||
42 | * rubygem-pg |
||
43 | * ImageMagick |
||
44 | * ImageMagick-devel |
||
45 | * git |
||
46 | * gcc |
||
47 | * make |
||
48 | |||
49 | h2. MySQL |
||
50 | |||
51 | Ajout au démarrage automatique et démarrage du service : |
||
52 | <pre><code class="bash"> |
||
53 | chkconfig -a mysql |
||
54 | rcmysql start |
||
55 | </code></pre> |
||
56 | |||
57 | Création de la base de donnés. |
||
58 | Substituer les items suivants à votre choix : |
||
59 | * redmine : Usager pour la base de donnés. |
||
60 | * password : Mot de passe de la base de donnees. |
||
61 | * db : Nom de la base de donnés. |
||
62 | |||
63 | Lancer MySQL : |
||
64 | <pre><code class="bash"> |
||
65 | mysql -u root -p |
||
66 | </code></pre> |
||
67 | |||
68 | Commandes MySQL : |
||
69 | <pre><code class="sql"> |
||
70 | create database db character set utf8; |
||
71 | create user 'redmine'@'localhost' identified by 'password'; |
||
72 | grant all privileges on db.* to 'redmine'@'localhost'; |
||
73 | commit; |
||
74 | quit; |
||
75 | </code></pre> |
||
76 | |||
77 | 13 | Patrice Nadeau | |
78 | 15 | Patrice Nadeau | No root pour la commande |
79 | <pre><code class="bash"> |
||
80 | bundle install |
||
81 | </code></pre> |
||
82 | |||
83 | 16 | Patrice Nadeau | |
84 | 29 | Patrice Nadeau | h1. Personnalisation |
85 | 8 | Patrice Nadeau | |
86 | 1 | Patrice Nadeau | h2. Plugins |
87 | |||
88 | 4 | Patrice Nadeau | h3. Redmine Rouge |
89 | 12 | Patrice Nadeau | |
90 | 1 | Patrice Nadeau | Permet le support de langage supplémentaire pour l'affichage de la syntaxe d'un code source. |
91 | 4 | Patrice Nadeau | |
92 | 13 | Patrice Nadeau | "Langage supporté":http://rouge.jayferd.us/demo |
93 | 1 | Patrice Nadeau | |
94 | https://github.com/ngyuki/redmine_rouge |
||
95 | |||
96 | <pre> |
||
97 | <code class="bash"> |
||
98 | cd /srv/redmine/plugins |
||
99 | git clone https://github.com/ngyuki/redmine_rouge.git |
||
100 | cd .. |
||
101 | bundle install |
||
102 | 2 | Patrice Nadeau | # Relancer redmine |
103 | rcredmine restart |
||
104 | 1 | Patrice Nadeau | </code> |
105 | </pre> |
||
106 | 5 | Patrice Nadeau | |
107 | 22 | Patrice Nadeau | h3. Code Highlight |
108 | 9 | Patrice Nadeau | |
109 | 10 | Patrice Nadeau | http://www.redmine.org/plugins/codehightlight_button |
110 | 9 | Patrice Nadeau | |
111 | Bouton permettant de sélectionner du code et d'activer la syntaxe selon un langage. |
||
112 | 11 | Patrice Nadeau | >Ne fonctionne pas pour les langages supplémentaires supportées par le « plug-in » _Redmine Rouge_. Voir "ici":https://github.com/mediatainment/redmine_codebutton/issues/2 |
113 | 9 | Patrice Nadeau | |
114 | 1 | Patrice Nadeau | Installation |
115 | <pre><code class="bash"> |
||
116 | 10 | Patrice Nadeau | cd /srv/redmine/plugins |
117 | git clone https://github.com/mediatainment/redmine_codebutton.git |
||
118 | cd .. |
||
119 | rake redmine:plugins |
||
120 | 9 | Patrice Nadeau | rake redmine:plugins:migrate RAILS_ENV=production |
121 | 10 | Patrice Nadeau | # Relancer Redmine |
122 | 1 | Patrice Nadeau | rcredmine restart |
123 | </code></pre> |
||
124 | 11 | Patrice Nadeau | |
125 | 23 | Patrice Nadeau | h3. Redmine Issue Checklist |
126 | 11 | Patrice Nadeau | |
127 | Extends issues to store checklist items |
||
128 | |||
129 | http://redminecrm.com/projects/checklist |
||
130 | |||
131 | Installation |
||
132 | <pre><code class="bash"> |
||
133 | cd /srv/redmine/plugins |
||
134 | wget http://redminecrm.com/license_manager/4200/redmine_issue_checklist-2_0_5.zip |
||
135 | unzip redmine_issue_checklist-2_0_5.zip |
||
136 | bundle exec rake redmine:plugins NAME=redmine_issue_checklist RAILS_ENV=production |
||
137 | # Relancer Redmine |
||
138 | rcredmine restart |
||
139 | </code></pre> |
||
140 | |||
141 | Configuration |
||
142 | Dans *Administration* |
||
143 | * *Plugins* |
||
144 | ** Choisir les options voulues |
||
145 | * *Roles and permissions* |
||
146 | ** Choisir le rôle |
||
147 | Donner les droits voulus sur : |
||
148 | *** Done checklist items |
||
149 | *** Edit checklist items |
||
150 | 14 | Patrice Nadeau | *** View checklist |
151 | 1 | Patrice Nadeau | |
152 | 24 | Patrice Nadeau | h3. Redmine People |
153 | |||
154 | 29 | Patrice Nadeau | > A faire |
155 | 24 | Patrice Nadeau | |
156 | 20 | Patrice Nadeau | h3. WikiNG |
157 | 1 | Patrice Nadeau | |
158 | 20 | Patrice Nadeau | Personnalisation des items dans le wiki. |
159 | 28 | Patrice Nadeau | Ajoute des boutons et des icônes comme FIXME et TODO. |
160 | 29 | Patrice Nadeau | > « Écrase » le bouton installé par _Code Highlight_ |
161 | 21 | Patrice Nadeau | |
162 | Installation |
||
163 | 27 | Patrice Nadeau | <pre><code class="bash"> |
164 | 26 | Patrice Nadeau | cd /srv/redmine |
165 | wget http://projects.andriylesyuk.com/attachments/download/564/wiking-1.0.0b.tar.bz2 |
||
166 | tar xvf wiking-1.0.0b.tar.bz2 |
||
167 | mv wiking plugins |
||
168 | rake redmine:plugins:migrate RAILS_ENV=production |
||
169 | # restart Redmine |
||
170 | rcredmine restart |
||
171 | </code></pre> |
||
172 | 20 | Patrice Nadeau | |
173 | 14 | Patrice Nadeau | h1. Mise à jour |
174 | 1 | Patrice Nadeau | |
175 | 14 | Patrice Nadeau | S’assurer d'avoir les dernières versions des plugins. |
176 | 9 | Patrice Nadeau | |
177 | 14 | Patrice Nadeau | h1. Copie de sécurité |
178 | 5 | Patrice Nadeau | |
179 | <pre> <code class="bash"> |
||
180 | #!/bin/bash |
||
181 | # |
||
182 | # backup_redmine.sh |
||
183 | # Backup of a Redmine setup |
||
184 | # Last Changes: 2013-02-23 |
||
185 | # Maintainer: Patrice Nadeau <patricen@telwarwick.net> |
||
186 | |||
187 | # TODO Verify the results (folder exist, enough disk pace , etc..) |
||
188 | |||
189 | ## The only variable needed to be changed |
||
190 | # Directory of the Redmine install |
||
191 | declare -r RAIL_ROOT='/srv/redmine' |
||
192 | # MySQL database |
||
193 | declare -r MYSQL_DB='' |
||
194 | # MySQL username for the Redemine db |
||
195 | declare -r MYSQL_USER='' |
||
196 | # MySQL password for the Redemine db |
||
197 | declare -r MYSQL_PASSWORD='' |
||
198 | # Directory for the backup (must exist and with no space in the name) |
||
199 | declare -r DIR='/root' |
||
200 | ## end |
||
201 | |||
202 | # Exit level |
||
203 | declare -ir EXIT_OK=0 |
||
204 | declare -ir EXIT_WARNING=1 |
||
205 | declare -ir EXIT_ERROR=2 |
||
206 | |||
207 | declare -i STATUS=$EXIT_OK |
||
208 | |||
209 | # The directory inside the archive |
||
210 | declare -r REDMINE='redmine' |
||
211 | TMP_DIR=$DIR/$REDMINE |
||
212 | |||
213 | # This will be used for the archive file |
||
214 | declare -r DST=$DIR/redmine_$(date +%Y%m%d_%H%M%S).tar.gz |
||
215 | |||
216 | # The temporary sql file |
||
217 | declare -r TMP_MYSQL=$TMP_DIR/$MYSQL_DB.mysql |
||
218 | |||
219 | echo "Backup in progress in $DST" |
||
220 | |||
221 | #### Create the temp directory #### |
||
222 | mkdir $TMP_DIR |
||
223 | |||
224 | #### backup MySQL #### |
||
225 | if [ $STATUS -eq $EXIT_OK ] |
||
226 | then |
||
227 | STEP='Creating MySQL backup' |
||
228 | mysqldump --user=$MYSQL_USER --password=$MYSQL_PASSWORD $MYSQL_DB \ |
||
229 | > $TMP_MYSQL |
||
230 | STATUS=$? |
||
231 | fi |
||
232 | |||
233 | #### backup the Redmine folder #### |
||
234 | if [ $STATUS -eq $EXIT_OK ] |
||
235 | then |
||
236 | STEP='Creating Redmine'"'"' files backup' |
||
237 | cp --recursive $RAIL_ROOT $TMP_DIR |
||
238 | STATUS=$? |
||
239 | fi |
||
240 | |||
241 | #### create the archive file #### |
||
242 | if [ $STATUS -eq $EXIT_OK ] |
||
243 | then |
||
244 | STEP="Creating archive" |
||
245 | tar --create --gzip --file $DST --directory=$DIR $REDMINE |
||
246 | STATUS=$? |
||
247 | fi |
||
248 | |||
249 | #### cleanup #### |
||
250 | if [ $STATUS -eq $EXIT_OK ] |
||
251 | then |
||
252 | STEP='Cleaning up' |
||
253 | rm --recursive --force $TMP_DIR |
||
254 | STATUS=$? |
||
255 | fi |
||
256 | |||
257 | #### exit #### |
||
258 | if [ $STATUS -eq $EXIT_OK ] |
||
259 | then |
||
260 | echo "Backup done" |
||
261 | else |
||
262 | echo "Bakup failed with error code $STATUS in step $STEP" |
||
263 | fi |
||
264 | |||
265 | |||
266 | exit $STATUS |
||
267 | |||
268 | </code></pre> |