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