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