Wiki » Historique » Version 229
Patrice Nadeau, 2018-08-17 13:01
| 1 | 214 | Patrice Nadeau | # Redmine |
|---|---|---|---|
| 2 | 6 | Patrice Nadeau | |
| 3 | 31 | Patrice Nadeau | Logiciel de gestion de projets, sources, bugs et timeline. |
| 4 | Contient un module de Wiki, de fichiers. |
||
| 5 | Supporte aussi les systèmes de version de fichier (Git, SVN entre autre). |
||
| 6 | Disponible à http://www.redmine.org/projects/redmine/wiki/Download |
||
| 7 | |||
| 8 | De base, ne fonctionne pas avec Apache |
||
| 9 | 1 | Patrice Nadeau | |
| 10 | Sa principale difficulté d’installation est sa dépendance à Ruby. |
||
| 11 | Voir aussi : |
||
| 12 | 219 | Patrice Nadeau | |
| 13 | 1 | Patrice Nadeau | * http://bitnami.com/stack/redmine |
| 14 | * http://www.turnkeylinux.org/redmine |
||
| 15 | |||
| 16 | 121 | Patrice Nadeau | {{lastupdated_at}} {{lastupdated_by}} |
| 17 | |||
| 18 | 94 | Patrice Nadeau | --- |
| 19 | 31 | Patrice Nadeau | |
| 20 | 94 | Patrice Nadeau | {{toc}} |
| 21 | |||
| 22 | 214 | Patrice Nadeau | ## Installation |
| 23 | 94 | Patrice Nadeau | |
| 24 | 32 | Patrice Nadeau | Ce guide documente une installation GNU/Linux avec les version suivantes : |
| 25 | 225 | Patrice Nadeau | * openSUSE Leap 15 |
| 26 | * Redmine 3.4 |
||
| 27 | 32 | Patrice Nadeau | |
| 28 | 214 | Patrice Nadeau | ### Prérequis |
| 29 | 1 | Patrice Nadeau | |
| 30 | Un serveur *LAMP(Linux, Apache, MySQL, PHP)* [[guides_opensuse:|openSUSE]] *fonctionnel*. |
||
| 31 | 56 | Patrice Nadeau | |
| 32 | 44 | Patrice Nadeau | Les logiciels supplémentaires suivants : |
| 33 | 207 | Patrice Nadeau | |
| 34 | 225 | Patrice Nadeau | zypper install libmysqlclient-devel ruby-2.5 ruby2.5-devel ImageMagick ImageMagick-devel libxml2-devel libxslt-devel libmariadb-devl git gcc make gcc-c++ |
| 35 | 32 | Patrice Nadeau | |
| 36 | 214 | Patrice Nadeau | ### MySQL |
| 37 | 94 | Patrice Nadeau | |
| 38 | 32 | Patrice Nadeau | Création de la base de donnés. |
| 39 | Substituer les items suivants à votre choix : |
||
| 40 | 214 | Patrice Nadeau | |
| 41 | 32 | Patrice Nadeau | * redmine : Usager pour la base de donnés. |
| 42 | 224 | Patrice Nadeau | * password : Mot de passe de la base de données. |
| 43 | 32 | Patrice Nadeau | * db : Nom de la base de donnés. |
| 44 | |||
| 45 | 1 | Patrice Nadeau | Lancer MySQL : |
| 46 | 32 | Patrice Nadeau | |
| 47 | 219 | Patrice Nadeau | mysql -u root -p |
| 48 | |||
| 49 | 1 | Patrice Nadeau | Commandes MySQL : |
| 50 | |||
| 51 | 219 | Patrice Nadeau | create database db character set utf8; |
| 52 | create user 'redmine'@'localhost' identified by 'password'; |
||
| 53 | grant all privileges on db.* to 'redmine'@'localhost'; |
||
| 54 | commit; |
||
| 55 | quit; |
||
| 56 | |||
| 57 | |||
| 58 | 32 | Patrice Nadeau | ### Redmine |
| 59 | 214 | Patrice Nadeau | |
| 60 | 225 | Patrice Nadeau | L’installation sera faite dans **\srv\redmine** (exemple avec la version 3.4) |
| 61 | 189 | Patrice Nadeau | |
| 62 | 219 | Patrice Nadeau | cd /srv/ |
| 63 | svn co http://svn.redmine.org/redmine/branches/3.1-stable redmine |
||
| 64 | cd redmine |
||
| 65 | cp config/database.yml.example config/database.yml |
||
| 66 | cp config/configuration.yml.example config/configuration.yml |
||
| 67 | mkdir public/plugin_assets |
||
| 68 | |||
| 69 | |||
| 70 | 33 | Patrice Nadeau | Si un usager MySQL autre que _root_ ou mot de passe diffèrent est utilisé : |
| 71 | 219 | Patrice Nadeau | Éditer le fichier **config/database.yml**, section *Production* et modifier les lignes : |
| 72 | 1 | Patrice Nadeau | |
| 73 | 219 | Patrice Nadeau | * **username** |
| 74 | * **password** |
||
| 75 | 33 | Patrice Nadeau | |
| 76 | 219 | Patrice Nadeau | Éditer le fichier **config/configuration.yml** et modifier la configuration SMTP. |
| 77 | |||
| 78 | 214 | Patrice Nadeau | ### Ruby |
| 79 | 33 | Patrice Nadeau | |
| 80 | 34 | Patrice Nadeau | Installation des gems de Ruby |
| 81 | 1 | Patrice Nadeau | |
| 82 | 219 | Patrice Nadeau | cd redmine |
| 83 | gem install bundler |
||
| 84 | 227 | Patrice Nadeau | bundle.ruby2.5 install --without development test |
| 85 | 219 | Patrice Nadeau | |
| 86 | 1 | Patrice Nadeau | ### Initialisation |
| 87 | 214 | Patrice Nadeau | |
| 88 | 1 | Patrice Nadeau | Création de la cryptographie, de la structure et des donnés de base : |
| 89 | |||
| 90 | 219 | Patrice Nadeau | cd /srv/redmine |
| 91 | rake generate_secret_token |
||
| 92 | RAILS_ENV=production rake db:migrate |
||
| 93 | RAILS_ENV=production rake redmine:load_default_data |
||
| 94 | |||
| 95 | 34 | Patrice Nadeau | ### Serveur web |
| 96 | 1 | Patrice Nadeau | |
| 97 | Redmine peux être utiliser avec le serveur inclus _webrick_ (port 3000) ou _Apache_ (port 80). |
||
| 98 | |||
| 99 | #### Webrick |
||
| 100 | |||
| 101 | 60 | Patrice Nadeau | Ouvrir dans le pare-feu le port TCP 3000 : |
| 102 | 1 | Patrice Nadeau | |
| 103 | 219 | Patrice Nadeau | yast firewall services add tcpport=3000 zone=EXT |
| 104 | |||
| 105 | 69 | Patrice Nadeau | Lancer le serveur web |
| 106 | 34 | Patrice Nadeau | |
| 107 | 219 | Patrice Nadeau | cd /srv/redmine |
| 108 | ruby bin/rails server webrick -e production |
||
| 109 | |||
| 110 | 214 | Patrice Nadeau | ##### Transformation en daemon |
| 111 | 94 | Patrice Nadeau | |
| 112 | 35 | Patrice Nadeau | Le script original vient de http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_on_openSUSE |
| 113 | 219 | Patrice Nadeau | Copier le script dans le fichier **/etc/init.d/redmine** |
| 114 | 1 | Patrice Nadeau | |
| 115 | 35 | Patrice Nadeau | Le modifier de la manière suivante : |
| 116 | 1 | Patrice Nadeau | |
| 117 | * REDMINE_BIN=/srv/redmine/current/script/rails |
||
| 118 | * REDMINE_USER=user |
||
| 119 | 224 | Patrice Nadeau | * Corriger le « typo » à la ligne 73 : $REDMI-NE_BIN -> $REDMINE_BIN |
| 120 | * Dans la section stop, après la ligne *killproc*, ajouter **rm $PIDFILE** |
||
| 121 | 35 | Patrice Nadeau | |
| 122 | Rendre le fichier exécutable, l’ajouter aux services SUSE et l’exécuter au démarrage : |
||
| 123 | |||
| 124 | 219 | Patrice Nadeau | chmod 0755 /etc/init.d/redmine |
| 125 | cp -s /etc/init.d/redmine /usr/bin/rcredmine |
||
| 126 | chkconfig -a redmine |
||
| 127 | |||
| 128 | 214 | Patrice Nadeau | #### Apache |
| 129 | 1 | Patrice Nadeau | |
| 130 | 45 | Patrice Nadeau | Transformation pour utilisation avec Apache. |
| 131 | 219 | Patrice Nadeau | |
| 132 | 45 | Patrice Nadeau | * N'utilise pas _webrick_ |
| 133 | * Accessible par le port 80 au lieu de 3000 |
||
| 134 | |||
| 135 | 54 | Patrice Nadeau | Information provenant de : |
| 136 | 219 | Patrice Nadeau | |
| 137 | 54 | Patrice Nadeau | * web : |
| 138 | 219 | Patrice Nadeau | * http://martin-denizet.com/install-redmine-2-5-x-with-git-and-subversion-on-debian-with-apache2-rvm-and-passenger/ |
| 139 | * http://www.redmine.org/projects/redmine/wiki/HowTo_configure_Apache_to_run_Redmine |
||
| 140 | * http://www.redmine.org/boards/2/topics/43924 |
||
| 141 | 214 | Patrice Nadeau | * livre : "Mastering Redmine":http://shop.oreilly.com/product/9781849519144.do |
| 142 | 1 | Patrice Nadeau | |
| 143 | 166 | Patrice Nadeau | ### Modules Apache |
| 144 | |||
| 145 | 46 | Patrice Nadeau | > Apache 2.4 |
| 146 | 45 | Patrice Nadeau | |
| 147 | Ajout |
||
| 148 | 1 | Patrice Nadeau | |
| 149 | 226 | Patrice Nadeau | zypper install libcurl-devel apache2-devel apache2-mod_perl perl-Apache-DBI subversion-server |
| 150 | 219 | Patrice Nadeau | |
| 151 | 45 | Patrice Nadeau | Activation des modules Apache |
| 152 | |||
| 153 | 219 | Patrice Nadeau | a2enmod ssl |
| 154 | a2enmod perl |
||
| 155 | a2enmod dav |
||
| 156 | a2enmod dav_svn |
||
| 157 | 1 | Patrice Nadeau | a2enmod dav_fs |
| 158 | 219 | Patrice Nadeau | a2enmod rewrite |
| 159 | a2enmod headers |
||
| 160 | |||
| 161 | 224 | Patrice Nadeau | Module _Passenger_ |
| 162 | 45 | Patrice Nadeau | |
| 163 | 219 | Patrice Nadeau | cd /srv/redmine |
| 164 | gem install passenger |
||
| 165 | passenger-install-apache2-module.ruby2.1 |
||
| 166 | 1 | Patrice Nadeau | |
| 167 | 90 | Patrice Nadeau | Changer les droits sur le fichiers de log |
| 168 | |||
| 169 | 219 | Patrice Nadeau | chmod 0666 log/production.log |
| 170 | |||
| 171 | 90 | Patrice Nadeau | Créer le dossier des fichiers temporaire |
| 172 | 219 | Patrice Nadeau | |
| 173 | > Par défaut les fichiers sont dans _/tmp_ mais se font enlever par le « clean-up » journalier et doivent être refait avec un reload d'Apache |
||
| 174 | |||
| 175 | mkdir tmp/passenger |
||
| 176 | 93 | Patrice Nadeau | |
| 177 | 214 | Patrice Nadeau | ### Activation de la configuration |
| 178 | 46 | Patrice Nadeau | |
| 179 | 216 | Patrice Nadeau | Créer le fichier **/etc/apache2/conf.d/passenger.conf** et ajouter la configuration inscrite par l'installation. |
| 180 | 61 | Patrice Nadeau | |
| 181 | 215 | Patrice Nadeau | Ajouter dans **/etc/apache2/vhosts.d/vhost.conf** |
| 182 | 45 | Patrice Nadeau | |
| 183 | 215 | Patrice Nadeau | <VirtualHost *:80> |
| 184 | # La ligne suivante est nécessaire seulement si plusieurs site web son présents sur le même serveur. |
||
| 185 | ServerName redmine.yourdomain.com |
||
| 186 | DocumentRoot /srv/redmine/public |
||
| 187 | 1 | Patrice Nadeau | |
| 188 | 215 | Patrice Nadeau | RailsEnv production |
| 189 | PassengerAppRoot /srv/redmine |
||
| 190 | PassengerTempDir /srv/redmine/tmp/passenger |
||
| 191 | 1 | Patrice Nadeau | |
| 192 | 215 | Patrice Nadeau | <Directory "/srv/redmine/public"> |
| 193 | Options Indexes ExecCGI FollowSymLinks |
||
| 194 | AllowOverride None |
||
| 195 | Order deny,allow |
||
| 196 | Require all granted |
||
| 197 | </Directory> |
||
| 198 | </VirtualHost> |
||
| 199 | |||
| 200 | |||
| 201 | 65 | Patrice Nadeau | Relancer Apache : |
| 202 | 215 | Patrice Nadeau | |
| 203 | systemctl reload apache2 |
||
| 204 | 45 | Patrice Nadeau | |
| 205 | 214 | Patrice Nadeau | ## Post-installation |
| 206 | 1 | Patrice Nadeau | |
| 207 | 68 | Patrice Nadeau | A partir d’un navigateur web, se brancher à : |
| 208 | 1 | Patrice Nadeau | |
| 209 | 220 | Patrice Nadeau | * Webrick : http://server:3000 |
| 210 | 71 | Patrice Nadeau | * Apache : http://server |
| 211 | 1 | Patrice Nadeau | |
| 212 | 69 | Patrice Nadeau | Utiliser l’usager *admin* avec le mot de passe *admin*. |
| 213 | 1 | Patrice Nadeau | Vérifier la configuration dans *Administration*, *Information*. |
| 214 | |||
| 215 | 224 | Patrice Nadeau | Si un avertissement apparaît pour l’écriture des répertoires, changer les droits : |
| 216 | 1 | Patrice Nadeau | > Semble être nécessaire que pour Apache |
| 217 | 82 | Patrice Nadeau | |
| 218 | 220 | Patrice Nadeau | cd /srv/redmine |
| 219 | chmod -R 0777 public/plugin_assets |
||
| 220 | chmod -R 0777 files |
||
| 221 | chown -R wwwrun:www tmp |
||
| 222 | # Pour la macro "thumbnails" du wiki, le plugin "redmine_people" nécessite au moins 0775 |
||
| 223 | chmod -R 0777 tmp/thumbnails |
||
| 224 | |||
| 225 | 1 | Patrice Nadeau | ## Personnalisation |
| 226 | |||
| 227 | ### Ajout d’un logo |
||
| 228 | 29 | Patrice Nadeau | |
| 229 | 187 | Patrice Nadeau | > Cette étape sera à refaire lors d'une mise à jour. |
| 230 | 1 | Patrice Nadeau | |
| 231 | 187 | Patrice Nadeau | Les informations viennent de : http://www.redmine.org/projects/redmine/wiki/Howto_add_a_logo_to_your_Redmine_banner |
| 232 | 36 | Patrice Nadeau | |
| 233 | 224 | Patrice Nadeau | * Copier le logo dans **/srv/redmine/public/images/logo.png** |
| 234 | 1 | Patrice Nadeau | |
| 235 | 224 | Patrice Nadeau | * Modifier le fichier **/srv/redmine/app/views/layouts/base.html.erb** |
| 236 | 220 | Patrice Nadeau | |
| 237 | * Si on ne veux plus afficher le titre, mettre en commentaire : |
||
| 238 | 1 | Patrice Nadeau | |
| 239 | 220 | Patrice Nadeau | <!--<h1><%= page_header_title %></h1>--> |
| 240 | 186 | Patrice Nadeau | |
| 241 | * Ajouter en dessous la ligne |
||
| 242 | 220 | Patrice Nadeau | |
| 243 | <img src="<%= Redmine::Utils.relative_url_root %>/images/logo.png" style="top-margin: 15px; left-margin: 15px;"/> |
||
| 244 | |||
| 245 | 224 | Patrice Nadeau | * Relancer Redmine |
| 246 | 1 | Patrice Nadeau | |
| 247 | ### Plugins |
||
| 248 | 214 | Patrice Nadeau | |
| 249 | 1 | Patrice Nadeau | Modules supplémentaires pour ajouter des fonctionnalités à Redmine. |
| 250 | |||
| 251 | > Source de problème lors de mise à jour si incompatibilité. |
||
| 252 | 172 | Patrice Nadeau | |
| 253 | 1 | Patrice Nadeau | #### Redmine Rouge |
| 254 | 209 | Patrice Nadeau | |
| 255 | 1 | Patrice Nadeau | Permet le support de langage supplémentaire pour l'affichage de la syntaxe d'un code source. |
| 256 | |||
| 257 | [Langage supporté](http://rouge.jayferd.us/demo) |
||
| 258 | |||
| 259 | 13 | Patrice Nadeau | https://github.com/ngyuki/redmine_rouge |
| 260 | 1 | Patrice Nadeau | |
| 261 | 224 | Patrice Nadeau | * Installation |
| 262 | |||
| 263 | cd /srv/redmine/plugins |
||
| 264 | 1 | Patrice Nadeau | |
| 265 | 217 | Patrice Nadeau | Enlever l'ancienne version (si présente) |
| 266 | 1 | Patrice Nadeau | |
| 267 | 224 | Patrice Nadeau | rm -r redmine_rouge |
| 268 | 1 | Patrice Nadeau | |
| 269 | Télécharger la nouvelle avec git |
||
| 270 | |||
| 271 | 224 | Patrice Nadeau | git clone https://github.com/ngyuki/redmine_rouge.git |
| 272 | cd .. |
||
| 273 | bundle.ruby2.1 install |
||
| 274 | 218 | Patrice Nadeau | |
| 275 | 224 | Patrice Nadeau | * Relancer redmine |
| 276 | 218 | Patrice Nadeau | |
| 277 | #### Code Highlight |
||
| 278 | 1 | Patrice Nadeau | |
| 279 | 74 | Patrice Nadeau | http://www.redmine.org/plugins/codehightlight_button |
| 280 | 5 | Patrice Nadeau | |
| 281 | 1 | Patrice Nadeau | Bouton permettant de sélectionner du code et d'activer la syntaxe selon un langage. |
| 282 | 9 | Patrice Nadeau | |
| 283 | 224 | Patrice Nadeau | * Installation |
| 284 | 9 | Patrice Nadeau | |
| 285 | 224 | Patrice Nadeau | cd /srv/redmine/plugins |
| 286 | git clone https://github.com/mediatainment/redmine_codebutton.git |
||
| 287 | cd .. |
||
| 288 | rake redmine:plugins |
||
| 289 | rake redmine:plugins:migrate RAILS_ENV=production |
||
| 290 | 1 | Patrice Nadeau | |
| 291 | 224 | Patrice Nadeau | * Relancer Redmine |
| 292 | 218 | Patrice Nadeau | |
| 293 | 224 | Patrice Nadeau | rcredmine restart |
| 294 | 10 | Patrice Nadeau | |
| 295 | 224 | Patrice Nadeau | * Ajout des langages supplémentaires supportées par le « plug-in » _Redmine Rouge_. |
| 296 | 220 | Patrice Nadeau | |
| 297 | 224 | Patrice Nadeau | > Voir [ici](https://github.com/mediatainment/redmine_codebutton/issues/2) |
| 298 | |||
| 299 | * Éditer le fichier **/srv/redmine/plugins/redmine_codebutton/assets/javascripts/wiki-codehighlight.js** |
||
| 300 | |||
| 301 | 220 | Patrice Nadeau | * Ajouter les langages voulus dans la variable *codeRayLanguages* |
| 302 | 95 | Patrice Nadeau | |
| 303 | 224 | Patrice Nadeau | * Relancer Apache |
| 304 | 1 | Patrice Nadeau | |
| 305 | 224 | Patrice Nadeau | systemctl reload apache2.service |
| 306 | 95 | Patrice Nadeau | |
| 307 | 220 | Patrice Nadeau | #### Like Button |
| 308 | 1 | Patrice Nadeau | |
| 309 | 214 | Patrice Nadeau | Bouton pour Facebook, Google+ et Twitter |
| 310 | 97 | Patrice Nadeau | |
| 311 | 1 | Patrice Nadeau | http://www.redmine.org/plugins/like |
| 312 | 97 | Patrice Nadeau | |
| 313 | 224 | Patrice Nadeau | * Installation |
| 314 | 98 | Patrice Nadeau | |
| 315 | 224 | Patrice Nadeau | cd /srv/redmine/plugins |
| 316 | svn svn co http://svn.s-andy.com/like-button like |
||
| 317 | 222 | Patrice Nadeau | |
| 318 | 224 | Patrice Nadeau | * Relancer Redmine |
| 319 | 220 | Patrice Nadeau | |
| 320 | 98 | Patrice Nadeau | #### Wiki Extensions |
| 321 | 97 | Patrice Nadeau | |
| 322 | 214 | Patrice Nadeau | Voir #52 |
| 323 | 113 | Patrice Nadeau | |
| 324 | 1 | Patrice Nadeau | Ajoute des macros au Wiki de Redmine |
| 325 | 224 | Patrice Nadeau | |
| 326 | 1 | Patrice Nadeau | > La dernière version est disponible à https://bitbucket.org/haru_iida/redmine_wiki_extensions/downloads |
| 327 | 115 | Patrice Nadeau | |
| 328 | 114 | Patrice Nadeau | Parmi les macros ajoutées: |
| 329 | 118 | Patrice Nadeau | |
| 330 | 220 | Patrice Nadeau | * Emoticons : Un bouton apparait pour ajouter des « smilley » qui seront afficher en graphique |
| 331 | 118 | Patrice Nadeau | * !{{lastupdated_by}} : affiche le nom de la dernière personne à avoir modifier la page |
| 332 | 1 | Patrice Nadeau | * !{{lastupdated_at}} : affiche la date de la dernière modification de la page |
| 333 | 118 | Patrice Nadeau | * Liste complète à http://www.r-labs.org/projects/r-labs/wiki/Wiki_Extensions_en |
| 334 | 1 | Patrice Nadeau | |
| 335 | 177 | Patrice Nadeau | > Des « smilley » non voulus peuvent apparaîtrent dans les wiki déjà en place. L'utilisation de *<notextile><notextile> </notextile></notextile>* seras alors nécessaire. |
| 336 | 133 | Patrice Nadeau | |
| 337 | 130 | Patrice Nadeau | Étapes : |
| 338 | 224 | Patrice Nadeau | |
| 339 | 220 | Patrice Nadeau | * Installation sur le serveur : |
| 340 | 114 | Patrice Nadeau | |
| 341 | 224 | Patrice Nadeau | cd /srv/redmine/ |
| 342 | wget https://bitbucket.org/haru_iida/redmine_wiki_extensions/downloads/redmine_wiki_extensions-0.8.0.zip |
||
| 343 | unzip redmine_wiki_extensions-0.8.0.zip -d plugins/ |
||
| 344 | rake redmine:plugins:migrate RAILS_ENV=production |
||
| 345 | systemctl reload apache2.service |
||
| 346 | rm -r redmine_wiki_extensions-0.8.0.zip |
||
| 347 | 220 | Patrice Nadeau | |
| 348 | * Activer le module dans le ou les projets voulus |
||
| 349 | |||
| 350 | 224 | Patrice Nadeau | * Retrait d'un plug-in |
| 351 | 220 | Patrice Nadeau | |
| 352 | 223 | Patrice Nadeau | cd /srv/redmine |
| 353 | rake redmine:plugins:migrate NAME=plugin_name VERSION=0 RAILS_ENV=production |
||
| 354 | rm -r plugins/plugin_name |
||
| 355 | rake db:migrate_plugins RAILS_ENV=production |
||
| 356 | 220 | Patrice Nadeau | |
| 357 | 214 | Patrice Nadeau | ## Mise à jour |
| 358 | 1 | Patrice Nadeau | |
| 359 | 228 | Patrice Nadeau | > Version 3.4.2 -> 3.4.6 |
| 360 | 101 | Patrice Nadeau | |
| 361 | 139 | Patrice Nadeau | S’assurer d'avoir les dernières versions des plugins ET qu'il sont compatibles avec la version de Redmine à installer. |
| 362 | 1 | Patrice Nadeau | |
| 363 | 101 | Patrice Nadeau | Disponible à http://www.redmine.org/projects/redmine/wiki/Download |
| 364 | 1 | Patrice Nadeau | |
| 365 | 101 | Patrice Nadeau | Mise à jour de Redmine à partir d'une version stable |
| 366 | > http://www.redmine.org/projects/redmine/wiki/RedmineUpgrade |
||
| 367 | 1 | Patrice Nadeau | |
| 368 | 220 | Patrice Nadeau | * Arrêter Redmine |
| 369 | * Renommer le répertoire actuel |
||
| 370 | 1 | Patrice Nadeau | |
| 371 | 221 | Patrice Nadeau | cd /srv/ |
| 372 | mv redmine redmine.old |
||
| 373 | 220 | Patrice Nadeau | |
| 374 | * Télécharger la nouvelle version |
||
| 375 | |||
| 376 | 229 | Patrice Nadeau | wget http://www.redmine.org/releases/redmine-3.4.6.tar.gz |
| 377 | 220 | Patrice Nadeau | |
| 378 | * Décompresser le fichier |
||
| 379 | |||
| 380 | 229 | Patrice Nadeau | tar xvf redmine-3.4.6.tar.gz |
| 381 | mv redmine-3.4.6 redmine |
||
| 382 | 220 | Patrice Nadeau | |
| 383 | * Copier les anciens fichiers de configurations |
||
| 384 | |||
| 385 | 221 | Patrice Nadeau | cp redmine.old/config/configuration.yml redmine/config |
| 386 | cp redmine.old/config/database.yml redmine/config |
||
| 387 | cp -r redmine.old/files redmine |
||
| 388 | 220 | Patrice Nadeau | |
| 389 | * Refaire la sécurité |
||
| 390 | |||
| 391 | 221 | Patrice Nadeau | chown -R root:root redmine |
| 392 | # Les commandes suivantes sont nécessaire seulement si Apache est utilisé |
||
| 393 | # Le même owner que config.ru doit être utiliser pour plusieurs dossier |
||
| 394 | chown wwwrun:www redmine/config.ru |
||
| 395 | mkdir redmine/tmp/passenger |
||
| 396 | chown -R wwwrun:www redmine/tmp |
||
| 397 | chmod 0777 redmine/public/plugin_assets |
||
| 398 | chmod -R 0777 redmine/files |
||
| 399 | 220 | Patrice Nadeau | |
| 400 | * Ne copier que les « plugins » qui ne sont pas fournis par la nouvelle version de Redmine |
||
| 401 | |||
| 402 | 221 | Patrice Nadeau | cp -r redmine.old/plugins/* redmine/plugins |
| 403 | 220 | Patrice Nadeau | |
| 404 | * Installer les « gems » |
||
| 405 | |||
| 406 | 221 | Patrice Nadeau | cd redmine |
| 407 | 229 | Patrice Nadeau | bundle.ruby2.5 install --without development test |
| 408 | 220 | Patrice Nadeau | |
| 409 | * Mise à jour (base de donnés, « plugins ») et ménage : |
||
| 410 | |||
| 411 | 229 | Patrice Nadeau | bundle.ruby2.5 exec rake generate_secret_token |
| 412 | bundle.ruby2.5 exec rake db:migrate RAILS_ENV=production |
||
| 413 | bundle.ruby2.5 exec rake redmine:plugins:migrate RAILS_ENV=production |
||
| 414 | bundle.ruby2.5 exec rake tmp:cache:clear tmp:sessions:clear |
||
| 415 | 220 | Patrice Nadeau | |
| 416 | * Remettre le logo (facultatif) |
||
| 417 | |||
| 418 | 221 | Patrice Nadeau | cd .. |
| 419 | cp redmine.old/public/images/logo.png redmine/public/images/ |
||
| 420 | cp redmine.old/app/views/layouts/base.html.erb redmine/app/views/layouts/ |
||
| 421 | 220 | Patrice Nadeau | |
| 422 | * Réinstaller le module « Passenger » (voir plus haut) |
||
| 423 | * Relancer Redmine |
||
| 424 | * Vérifier |
||
| 425 | * Administration |
||
| 426 | * Informations |
||
| 427 | * Plugins |
||
| 428 | * Projects |
||
| 429 | * Users |
||
| 430 | * Roles & permissions |
||
| 431 | * Essayer d'attacher un fichier à un projet |
||
| 432 | * Essayer d’accéder au calendrier d'un projet |
||
| 433 | |||
| 434 | 214 | Patrice Nadeau | ## Copie de sécurité |
| 435 | 40 | Patrice Nadeau | |
| 436 | 163 | Patrice Nadeau | [[Copie de sécurité]] |
| 437 | |||
| 438 | 5 | Patrice Nadeau | |
| 439 | 39 | Patrice Nadeau | |
| 440 | 214 | Patrice Nadeau | ## Dépannage |
| 441 | 1 | Patrice Nadeau | |
| 442 | 214 | Patrice Nadeau | ### Mot de passe perdu |
| 443 | 1 | Patrice Nadeau | |
| 444 | Le mot de passe admin par défaut est en _hash Sha1_ : *da3174755c5e82a436b6c7ff87c873ee50d6654b* et est *admin.* |
||
| 445 | |||
| 446 | 214 | Patrice Nadeau | ### Le service tombe « DEAD » à chaque fois (webrick) |
| 447 | 1 | Patrice Nadeau | |
| 448 | 220 | Patrice Nadeau | Effacer le fichier **/srv/redmine/tmp/pids/server.pid**. |