Wiki » Historique » Version 26
Patrice Nadeau, 2014-08-13 19:42
1 | 13 | Patrice Nadeau | %{font-size:18pt}Redmine% |
---|---|---|---|
2 | |||
3 | 25 | Patrice Nadeau | {TODO} Merge du fichier PDF |
4 | |||
5 | 13 | Patrice Nadeau | --- |
6 | |||
7 | 1 | Patrice Nadeau | {{toc}} |
8 | |||
9 | 13 | Patrice Nadeau | h1. Redmine |
10 | 6 | Patrice Nadeau | |
11 | h1. Installation |
||
12 | |||
13 | h2. Prérequis |
||
14 | 1 | Patrice Nadeau | |
15 | 13 | Patrice Nadeau | libmysqlclient-devel |
16 | |||
17 | 15 | Patrice Nadeau | No root pour la commande |
18 | <pre><code class="bash"> |
||
19 | bundle install |
||
20 | </code></pre> |
||
21 | |||
22 | 16 | Patrice Nadeau | |
23 | 7 | Patrice Nadeau | h1. Personalisation |
24 | 8 | Patrice Nadeau | |
25 | 1 | Patrice Nadeau | h2. Plugins |
26 | |||
27 | 4 | Patrice Nadeau | h3. Redmine Rouge |
28 | 12 | Patrice Nadeau | |
29 | 1 | Patrice Nadeau | Permet le support de langage supplémentaire pour l'affichage de la syntaxe d'un code source. |
30 | 4 | Patrice Nadeau | |
31 | 13 | Patrice Nadeau | "Langage supporté":http://rouge.jayferd.us/demo |
32 | 1 | Patrice Nadeau | |
33 | https://github.com/ngyuki/redmine_rouge |
||
34 | |||
35 | <pre> |
||
36 | <code class="bash"> |
||
37 | cd /srv/redmine/plugins |
||
38 | git clone https://github.com/ngyuki/redmine_rouge.git |
||
39 | cd .. |
||
40 | bundle install |
||
41 | 2 | Patrice Nadeau | # Relancer redmine |
42 | rcredmine restart |
||
43 | 1 | Patrice Nadeau | </code> |
44 | </pre> |
||
45 | 5 | Patrice Nadeau | |
46 | 22 | Patrice Nadeau | h3. Code Highlight |
47 | 9 | Patrice Nadeau | |
48 | 10 | Patrice Nadeau | http://www.redmine.org/plugins/codehightlight_button |
49 | 9 | Patrice Nadeau | |
50 | Bouton permettant de sélectionner du code et d'activer la syntaxe selon un langage. |
||
51 | 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 |
52 | 9 | Patrice Nadeau | |
53 | 1 | Patrice Nadeau | Installation |
54 | <pre><code class="bash"> |
||
55 | 10 | Patrice Nadeau | cd /srv/redmine/plugins |
56 | git clone https://github.com/mediatainment/redmine_codebutton.git |
||
57 | cd .. |
||
58 | rake redmine:plugins |
||
59 | 9 | Patrice Nadeau | rake redmine:plugins:migrate RAILS_ENV=production |
60 | 10 | Patrice Nadeau | # Relancer Redmine |
61 | 1 | Patrice Nadeau | rcredmine restart |
62 | </code></pre> |
||
63 | 11 | Patrice Nadeau | |
64 | 23 | Patrice Nadeau | h3. Redmine Issue Checklist |
65 | 11 | Patrice Nadeau | |
66 | Extends issues to store checklist items |
||
67 | |||
68 | http://redminecrm.com/projects/checklist |
||
69 | |||
70 | Installation |
||
71 | <pre><code class="bash"> |
||
72 | cd /srv/redmine/plugins |
||
73 | wget http://redminecrm.com/license_manager/4200/redmine_issue_checklist-2_0_5.zip |
||
74 | unzip redmine_issue_checklist-2_0_5.zip |
||
75 | bundle exec rake redmine:plugins NAME=redmine_issue_checklist RAILS_ENV=production |
||
76 | # Relancer Redmine |
||
77 | rcredmine restart |
||
78 | </code></pre> |
||
79 | |||
80 | Configuration |
||
81 | Dans *Administration* |
||
82 | * *Plugins* |
||
83 | ** Choisir les options voulues |
||
84 | * *Roles and permissions* |
||
85 | ** Choisir le rôle |
||
86 | Donner les droits voulus sur : |
||
87 | *** Done checklist items |
||
88 | *** Edit checklist items |
||
89 | 14 | Patrice Nadeau | *** View checklist |
90 | 1 | Patrice Nadeau | |
91 | 24 | Patrice Nadeau | h3. Redmine People |
92 | |||
93 | {TODO} |
||
94 | |||
95 | 20 | Patrice Nadeau | h3. WikiNG |
96 | |||
97 | 1 | Patrice Nadeau | |
98 | 21 | Patrice Nadeau | {TODO} |
99 | |||
100 | Installation |
||
101 | 26 | Patrice Nadeau | <pre><code lang="bash"> |
102 | cd /srv/redmine |
||
103 | wget http://projects.andriylesyuk.com/attachments/download/564/wiking-1.0.0b.tar.bz2 |
||
104 | tar xvf wiking-1.0.0b.tar.bz2 |
||
105 | mv wiking plugins |
||
106 | rake redmine:plugins:migrate RAILS_ENV=production |
||
107 | # restart Redmine |
||
108 | rcredmine restart |
||
109 | </code></pre> |
||
110 | 20 | Patrice Nadeau | |
111 | 14 | Patrice Nadeau | h1. Mise à jour |
112 | 1 | Patrice Nadeau | |
113 | 14 | Patrice Nadeau | S’assurer d'avoir les dernières versions des plugins. |
114 | 9 | Patrice Nadeau | |
115 | 14 | Patrice Nadeau | h1. Copie de sécurité |
116 | 5 | Patrice Nadeau | |
117 | <pre> <code class="bash"> |
||
118 | #!/bin/bash |
||
119 | # |
||
120 | # backup_redmine.sh |
||
121 | # Backup of a Redmine setup |
||
122 | # Last Changes: 2013-02-23 |
||
123 | # Maintainer: Patrice Nadeau <patricen@telwarwick.net> |
||
124 | |||
125 | # TODO Verify the results (folder exist, enough disk pace , etc..) |
||
126 | |||
127 | ## The only variable needed to be changed |
||
128 | # Directory of the Redmine install |
||
129 | declare -r RAIL_ROOT='/srv/redmine' |
||
130 | # MySQL database |
||
131 | declare -r MYSQL_DB='' |
||
132 | # MySQL username for the Redemine db |
||
133 | declare -r MYSQL_USER='' |
||
134 | # MySQL password for the Redemine db |
||
135 | declare -r MYSQL_PASSWORD='' |
||
136 | # Directory for the backup (must exist and with no space in the name) |
||
137 | declare -r DIR='/root' |
||
138 | ## end |
||
139 | |||
140 | # Exit level |
||
141 | declare -ir EXIT_OK=0 |
||
142 | declare -ir EXIT_WARNING=1 |
||
143 | declare -ir EXIT_ERROR=2 |
||
144 | |||
145 | declare -i STATUS=$EXIT_OK |
||
146 | |||
147 | # The directory inside the archive |
||
148 | declare -r REDMINE='redmine' |
||
149 | TMP_DIR=$DIR/$REDMINE |
||
150 | |||
151 | # This will be used for the archive file |
||
152 | declare -r DST=$DIR/redmine_$(date +%Y%m%d_%H%M%S).tar.gz |
||
153 | |||
154 | # The temporary sql file |
||
155 | declare -r TMP_MYSQL=$TMP_DIR/$MYSQL_DB.mysql |
||
156 | |||
157 | echo "Backup in progress in $DST" |
||
158 | |||
159 | #### Create the temp directory #### |
||
160 | mkdir $TMP_DIR |
||
161 | |||
162 | #### backup MySQL #### |
||
163 | if [ $STATUS -eq $EXIT_OK ] |
||
164 | then |
||
165 | STEP='Creating MySQL backup' |
||
166 | mysqldump --user=$MYSQL_USER --password=$MYSQL_PASSWORD $MYSQL_DB \ |
||
167 | > $TMP_MYSQL |
||
168 | STATUS=$? |
||
169 | fi |
||
170 | |||
171 | #### backup the Redmine folder #### |
||
172 | if [ $STATUS -eq $EXIT_OK ] |
||
173 | then |
||
174 | STEP='Creating Redmine'"'"' files backup' |
||
175 | cp --recursive $RAIL_ROOT $TMP_DIR |
||
176 | STATUS=$? |
||
177 | fi |
||
178 | |||
179 | #### create the archive file #### |
||
180 | if [ $STATUS -eq $EXIT_OK ] |
||
181 | then |
||
182 | STEP="Creating archive" |
||
183 | tar --create --gzip --file $DST --directory=$DIR $REDMINE |
||
184 | STATUS=$? |
||
185 | fi |
||
186 | |||
187 | #### cleanup #### |
||
188 | if [ $STATUS -eq $EXIT_OK ] |
||
189 | then |
||
190 | STEP='Cleaning up' |
||
191 | rm --recursive --force $TMP_DIR |
||
192 | STATUS=$? |
||
193 | fi |
||
194 | |||
195 | #### exit #### |
||
196 | if [ $STATUS -eq $EXIT_OK ] |
||
197 | then |
||
198 | echo "Backup done" |
||
199 | else |
||
200 | echo "Bakup failed with error code $STATUS in step $STEP" |
||
201 | fi |
||
202 | |||
203 | |||
204 | exit $STATUS |
||
205 | |||
206 | </code></pre> |