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