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