Wiki » Historique » Version 25
Patrice Nadeau, 2014-08-13 19:35
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 | 20 | Patrice Nadeau | |
102 | 14 | Patrice Nadeau | h1. Mise à jour |
103 | 1 | Patrice Nadeau | |
104 | 14 | Patrice Nadeau | S’assurer d'avoir les dernières versions des plugins. |
105 | 9 | Patrice Nadeau | |
106 | 14 | Patrice Nadeau | h1. Copie de sécurité |
107 | 5 | Patrice Nadeau | |
108 | <pre> <code class="bash"> |
||
109 | #!/bin/bash |
||
110 | # |
||
111 | # backup_redmine.sh |
||
112 | # Backup of a Redmine setup |
||
113 | # Last Changes: 2013-02-23 |
||
114 | # Maintainer: Patrice Nadeau <patricen@telwarwick.net> |
||
115 | |||
116 | # TODO Verify the results (folder exist, enough disk pace , etc..) |
||
117 | |||
118 | ## The only variable needed to be changed |
||
119 | # Directory of the Redmine install |
||
120 | declare -r RAIL_ROOT='/srv/redmine' |
||
121 | # MySQL database |
||
122 | declare -r MYSQL_DB='' |
||
123 | # MySQL username for the Redemine db |
||
124 | declare -r MYSQL_USER='' |
||
125 | # MySQL password for the Redemine db |
||
126 | declare -r MYSQL_PASSWORD='' |
||
127 | # Directory for the backup (must exist and with no space in the name) |
||
128 | declare -r DIR='/root' |
||
129 | ## end |
||
130 | |||
131 | # Exit level |
||
132 | declare -ir EXIT_OK=0 |
||
133 | declare -ir EXIT_WARNING=1 |
||
134 | declare -ir EXIT_ERROR=2 |
||
135 | |||
136 | declare -i STATUS=$EXIT_OK |
||
137 | |||
138 | # The directory inside the archive |
||
139 | declare -r REDMINE='redmine' |
||
140 | TMP_DIR=$DIR/$REDMINE |
||
141 | |||
142 | # This will be used for the archive file |
||
143 | declare -r DST=$DIR/redmine_$(date +%Y%m%d_%H%M%S).tar.gz |
||
144 | |||
145 | # The temporary sql file |
||
146 | declare -r TMP_MYSQL=$TMP_DIR/$MYSQL_DB.mysql |
||
147 | |||
148 | echo "Backup in progress in $DST" |
||
149 | |||
150 | #### Create the temp directory #### |
||
151 | mkdir $TMP_DIR |
||
152 | |||
153 | #### backup MySQL #### |
||
154 | if [ $STATUS -eq $EXIT_OK ] |
||
155 | then |
||
156 | STEP='Creating MySQL backup' |
||
157 | mysqldump --user=$MYSQL_USER --password=$MYSQL_PASSWORD $MYSQL_DB \ |
||
158 | > $TMP_MYSQL |
||
159 | STATUS=$? |
||
160 | fi |
||
161 | |||
162 | #### backup the Redmine folder #### |
||
163 | if [ $STATUS -eq $EXIT_OK ] |
||
164 | then |
||
165 | STEP='Creating Redmine'"'"' files backup' |
||
166 | cp --recursive $RAIL_ROOT $TMP_DIR |
||
167 | STATUS=$? |
||
168 | fi |
||
169 | |||
170 | #### create the archive file #### |
||
171 | if [ $STATUS -eq $EXIT_OK ] |
||
172 | then |
||
173 | STEP="Creating archive" |
||
174 | tar --create --gzip --file $DST --directory=$DIR $REDMINE |
||
175 | STATUS=$? |
||
176 | fi |
||
177 | |||
178 | #### cleanup #### |
||
179 | if [ $STATUS -eq $EXIT_OK ] |
||
180 | then |
||
181 | STEP='Cleaning up' |
||
182 | rm --recursive --force $TMP_DIR |
||
183 | STATUS=$? |
||
184 | fi |
||
185 | |||
186 | #### exit #### |
||
187 | if [ $STATUS -eq $EXIT_OK ] |
||
188 | then |
||
189 | echo "Backup done" |
||
190 | else |
||
191 | echo "Bakup failed with error code $STATUS in step $STEP" |
||
192 | fi |
||
193 | |||
194 | |||
195 | exit $STATUS |
||
196 | |||
197 | </code></pre> |