Wiki » Historique » Version 29
  Patrice Nadeau, 2014-08-13 19:59 
  
| 1 | 13 | Patrice Nadeau | %{font-size:18pt}Redmine% | 
|---|---|---|---|
| 2 | |||
| 3 | 29 | Patrice Nadeau | >Merge du fichier PDF  | 
| 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 | 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 | 29 | Patrice Nadeau | h1. Personnalisation  | 
| 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 | 29 | Patrice Nadeau | > A faire  | 
| 94 | 24 | Patrice Nadeau | |
| 95 | 20 | Patrice Nadeau | h3. WikiNG  | 
| 96 | 1 | Patrice Nadeau | |
| 97 | 20 | Patrice Nadeau | Personnalisation des items dans le wiki.  | 
| 98 | 28 | Patrice Nadeau | Ajoute des boutons et des icônes comme FIXME et TODO.  | 
| 99 | 29 | Patrice Nadeau | > « Écrase » le bouton installé par _Code Highlight_  | 
| 100 | 21 | Patrice Nadeau | |
| 101 | Installation  | 
||
| 102 | 27 | Patrice Nadeau | <pre><code class="bash">  | 
| 103 | 26 | Patrice Nadeau | cd /srv/redmine  | 
| 104 | wget http://projects.andriylesyuk.com/attachments/download/564/wiking-1.0.0b.tar.bz2  | 
||
| 105 | tar xvf wiking-1.0.0b.tar.bz2  | 
||
| 106 | mv wiking plugins  | 
||
| 107 | rake redmine:plugins:migrate RAILS_ENV=production  | 
||
| 108 | # restart Redmine  | 
||
| 109 | rcredmine restart  | 
||
| 110 | </code></pre>  | 
||
| 111 | 20 | Patrice Nadeau | |
| 112 | 14 | Patrice Nadeau | h1. Mise à jour  | 
| 113 | 1 | Patrice Nadeau | |
| 114 | 14 | Patrice Nadeau | S’assurer d'avoir les dernières versions des plugins.  | 
| 115 | 9 | Patrice Nadeau | |
| 116 | 14 | Patrice Nadeau | h1. Copie de sécurité  | 
| 117 | 5 | Patrice Nadeau | |
| 118 | <pre> <code class="bash">  | 
||
| 119 | #!/bin/bash  | 
||
| 120 | #  | 
||
| 121 | # backup_redmine.sh  | 
||
| 122 | # Backup of a Redmine setup  | 
||
| 123 | # Last Changes: 2013-02-23  | 
||
| 124 | # Maintainer: Patrice Nadeau <patricen@telwarwick.net>  | 
||
| 125 | |||
| 126 | # TODO Verify the results (folder exist, enough disk pace , etc..)  | 
||
| 127 | |||
| 128 | ## The only variable needed to be changed  | 
||
| 129 | # Directory of the Redmine install  | 
||
| 130 | declare -r RAIL_ROOT='/srv/redmine'  | 
||
| 131 | # MySQL database  | 
||
| 132 | declare -r MYSQL_DB=''  | 
||
| 133 | # MySQL username for the Redemine db  | 
||
| 134 | declare -r MYSQL_USER=''  | 
||
| 135 | # MySQL password for the Redemine db  | 
||
| 136 | declare -r MYSQL_PASSWORD=''  | 
||
| 137 | # Directory for the backup (must exist and with no space in the name)  | 
||
| 138 | declare -r DIR='/root'  | 
||
| 139 | ## end  | 
||
| 140 | |||
| 141 | # Exit level  | 
||
| 142 | declare -ir EXIT_OK=0  | 
||
| 143 | declare -ir EXIT_WARNING=1  | 
||
| 144 | declare -ir EXIT_ERROR=2  | 
||
| 145 | |||
| 146 | declare -i STATUS=$EXIT_OK  | 
||
| 147 | |||
| 148 | # The directory inside the archive  | 
||
| 149 | declare -r REDMINE='redmine'  | 
||
| 150 | TMP_DIR=$DIR/$REDMINE  | 
||
| 151 | |||
| 152 | # This will be used for the archive file  | 
||
| 153 | declare -r DST=$DIR/redmine_$(date +%Y%m%d_%H%M%S).tar.gz  | 
||
| 154 | |||
| 155 | # The temporary sql file  | 
||
| 156 | declare -r TMP_MYSQL=$TMP_DIR/$MYSQL_DB.mysql  | 
||
| 157 | |||
| 158 | echo "Backup in progress in $DST"  | 
||
| 159 | |||
| 160 | #### Create the temp directory ####  | 
||
| 161 | mkdir $TMP_DIR  | 
||
| 162 | |||
| 163 | #### backup MySQL ####  | 
||
| 164 | if [ $STATUS -eq $EXIT_OK ]  | 
||
| 165 | then  | 
||
| 166 | STEP='Creating MySQL backup'  | 
||
| 167 | mysqldump --user=$MYSQL_USER --password=$MYSQL_PASSWORD $MYSQL_DB \  | 
||
| 168 | > $TMP_MYSQL  | 
||
| 169 | STATUS=$?  | 
||
| 170 | fi  | 
||
| 171 | |||
| 172 | #### backup the Redmine folder ####  | 
||
| 173 | if [ $STATUS -eq $EXIT_OK ]  | 
||
| 174 | then  | 
||
| 175 | STEP='Creating Redmine'"'"' files backup'  | 
||
| 176 | cp --recursive $RAIL_ROOT $TMP_DIR  | 
||
| 177 | STATUS=$?  | 
||
| 178 | fi  | 
||
| 179 | |||
| 180 | #### create the archive file ####  | 
||
| 181 | if [ $STATUS -eq $EXIT_OK ]  | 
||
| 182 | then  | 
||
| 183 | STEP="Creating archive"  | 
||
| 184 | tar --create --gzip --file $DST --directory=$DIR $REDMINE  | 
||
| 185 | STATUS=$?  | 
||
| 186 | fi  | 
||
| 187 | |||
| 188 | #### cleanup ####  | 
||
| 189 | if [ $STATUS -eq $EXIT_OK ]  | 
||
| 190 | then  | 
||
| 191 | STEP='Cleaning up'  | 
||
| 192 | rm --recursive --force $TMP_DIR  | 
||
| 193 | STATUS=$?  | 
||
| 194 | fi  | 
||
| 195 | |||
| 196 | #### exit ####  | 
||
| 197 | if [ $STATUS -eq $EXIT_OK ]  | 
||
| 198 | then  | 
||
| 199 | echo "Backup done"  | 
||
| 200 | else  | 
||
| 201 | echo "Bakup failed with error code $STATUS in step $STEP"  | 
||
| 202 | fi  | 
||
| 203 | |||
| 204 | |||
| 205 | exit $STATUS  | 
||
| 206 | |||
| 207 | </code></pre>  |