FrRedmineInstall » History » Version 2
Fabrice Phung, 2008-12-11 22:50
1 | 1 | Fabrice Phung | h1. Installer Redmine |
---|---|---|---|
2 | 1 | Fabrice Phung | |
3 | 1 | Fabrice Phung | {{>TOC}} |
4 | 1 | Fabrice Phung | |
5 | 1 | Fabrice Phung | h2. Prérequis |
6 | 1 | Fabrice Phung | |
7 | 2 | Fabrice Phung | * Ruby & Ruby on Rails: |
8 | 1 | Fabrice Phung | |
9 | 2 | Fabrice Phung | |_. version Redmine|_. version Rails requise| |
10 | 2 | Fabrice Phung | |trunk|Rails 2.1.2| |
11 | 2 | Fabrice Phung | |0.8.x|Rails 2.1.2| |
12 | 2 | Fabrice Phung | |0.7.x|Rails 2.0.2| |
13 | 1 | Fabrice Phung | |
14 | 2 | Fabrice Phung | Les distributions officielles comprennent la version appropriée de Rails dans leur répertoire @vendor@. Aucune action n'est donc demandée. Si vous faites un checkout des sources depuis le dépôt Redmine, vous pouvez installer une version spécifique de Rails sur votre machine en lançant : |
15 | 2 | Fabrice Phung | If you checkout the source from the Redmine repository, you can install a specific Rails version on your machine by running: |
16 | 2 | Fabrice Phung | |
17 | 2 | Fabrice Phung | gem install rails -v=2.1.2 |
18 | 2 | Fabrice Phung | |
19 | 2 | Fabrice Phung | * Une base de données |
20 | 2 | Fabrice Phung | |
21 | 2 | Fabrice Phung | * MySQL 4.1 ou plus (recommandé) |
22 | 2 | Fabrice Phung | * PostgreSQL 8 |
23 | 2 | Fabrice Phung | * SQLite 3 (svp lisez ceci: http://weblog.rubyonrails.org/2007/1/29/using-sqlite3-with-rails) |
24 | 2 | Fabrice Phung | |
25 | 2 | Fabrice Phung | * Optionnel: |
26 | 2 | Fabrice Phung | |
27 | 1 | Fabrice Phung | * binaires SVN (>= 1.3), pour la consultation des dépôts (doivent être atteignables dans votre PATH) |
28 | 1 | Fabrice Phung | * RMagick (export Gantt dans une image png) |
29 | 1 | Fabrice Phung | |
30 | 2 | Fabrice Phung | Notez que Rails a quelques problèmes de compatibilité avec Ruby 1.8.7. *La version de ruby supportée est 1.8.6*. |
31 | 1 | Fabrice Phung | |
32 | 1 | Fabrice Phung | |
33 | 1 | Fabrice Phung | h2. Installation |
34 | 1 | Fabrice Phung | |
35 | 1 | Fabrice Phung | 1. [[Download|Téléchargez]] et extrayez l'archive ou faites un [[CheckingoutRedmine|checkout]] de Redmine. |
36 | 1 | Fabrice Phung | |
37 | 1 | Fabrice Phung | 2. Créez une base de données vide nommée par exemple @redmine@. |
38 | 1 | Fabrice Phung | |
39 | 1 | Fabrice Phung | Pour MySQL: |
40 | 1 | Fabrice Phung | |
41 | 1 | Fabrice Phung | create database redmine character set utf8; |
42 | 1 | Fabrice Phung | |
43 | 1 | Fabrice Phung | 3. Coiez @config/database.yml.example@ dans @config/database.yml@ et éditez ce fichier pour configurer vos paramètres de base dans l'environnement "production". |
44 | 1 | Fabrice Phung | |
45 | 1 | Fabrice Phung | Exemple pour une base de données MySQL: |
46 | 1 | Fabrice Phung | |
47 | 1 | Fabrice Phung | production: |
48 | 1 | Fabrice Phung | adapter: mysql |
49 | 1 | Fabrice Phung | database: redmine |
50 | 1 | Fabrice Phung | host: localhost |
51 | 1 | Fabrice Phung | username: bduser |
52 | 1 | Fabrice Phung | password: bdpasswd |
53 | 1 | Fabrice Phung | |
54 | 1 | Fabrice Phung | 4. Créez la structure de base en lançant la commande suivante depuis le répertoire racine de l'application: |
55 | 1 | Fabrice Phung | |
56 | 1 | Fabrice Phung | rake db:migrate RAILS_ENV="production" |
57 | 1 | Fabrice Phung | |
58 | 1 | Fabrice Phung | Ceci va créer les tables et le compte administrateur. |
59 | 1 | Fabrice Phung | |
60 | 1 | Fabrice Phung | 5. Insérez les données de la configuration par défaut dans la base en lançant la commande suivante: |
61 | 1 | Fabrice Phung | |
62 | 1 | Fabrice Phung | rake redmine:load_default_data RAILS_ENV="production" |
63 | 1 | Fabrice Phung | |
64 | 1 | Fabrice Phung | Cette étape est optionnelle mais *fortement recommandée*, sauf si vous définissez votre propre configuration depuis rien. Elle va charger les rôles par défaut, les trackers, statuts, workflows et énumérations. |
65 | 1 | Fabrice Phung | |
66 | 2 | Fabrice Phung | 6. Paramétrez les permissions |
67 | 1 | Fabrice Phung | |
68 | 2 | Fabrice Phung | NB: _Les utilisateurs sous Windows doivent sauter cette section._ |
69 | 2 | Fabrice Phung | |
70 | 2 | Fabrice Phung | L'utilisateur faisant tourner Redmine doit avoir la permission d'écriture sur les sous-répertoires suivants: @files@, @log@, @tmp@ (créez ce dernier s'il n'est pas présent). |
71 | 2 | Fabrice Phung | |
72 | 2 | Fabrice Phung | A supposer que vous fassiez tourner Redmine avec un utilisateur@redmine@: |
73 | 2 | Fabrice Phung | |
74 | 2 | Fabrice Phung | <pre> |
75 | 2 | Fabrice Phung | mkdir tmp |
76 | 2 | Fabrice Phung | sudo chown -R redmine:redmine files log tmp |
77 | 2 | Fabrice Phung | sudo chmod -R 755 files log tmp |
78 | 2 | Fabrice Phung | </pre> |
79 | 2 | Fabrice Phung | |
80 | 2 | Fabrice Phung | |
81 | 2 | Fabrice Phung | 7. Testez l'installation en lançant le serveur web WEBrick: |
82 | 2 | Fabrice Phung | |
83 | 1 | Fabrice Phung | ruby script/server -e production |
84 | 1 | Fabrice Phung | |
85 | 1 | Fabrice Phung | Une fois WEBrick démarré, dirigez votre navigateur sur http://localhost:3000/. Vous devriez voir maintenant la page de bienvenue de l'application. |
86 | 1 | Fabrice Phung | |
87 | 2 | Fabrice Phung | 8. Utilisez le compte administrateur par défaut pour vous connecter: |
88 | 1 | Fabrice Phung | |
89 | 1 | Fabrice Phung | * identifiant: admin |
90 | 1 | Fabrice Phung | * mot de passe: admin |
91 | 1 | Fabrice Phung | |
92 | 2 | Fabrice Phung | Vous pouvez aller sur @Administration@ pour modifier la configuration de l'application. |
93 | 1 | Fabrice Phung | |
94 | 1 | Fabrice Phung | h2. Configuration du serveur SMTP |
95 | 2 | Fabrice Phung | |
96 | 2 | Fabrice Phung | h3. versions 0.8.x |
97 | 2 | Fabrice Phung | |
98 | 2 | Fabrice Phung | Copiez @config/email.yml.example@ vers @config/email.yml@ et éditez ce fichier pour ajuster vos paramètres SMTP. |
99 | 2 | Fabrice Phung | |
100 | 2 | Fabrice Phung | h3. versions 0.7.x |
101 | 1 | Fabrice Phung | |
102 | 1 | Fabrice Phung | Dans config/environment.rb, vous pouvez configurer les paramètres de votre serveur SMTP: |
103 | 1 | Fabrice Phung | |
104 | 1 | Fabrice Phung | * config.action_mailer.smtp_settings: configuration du serveur SMTP |
105 | 1 | Fabrice Phung | * config.action_mailer.perform_deliveries: mettre à false pour désactiver l'envoi de messages |
106 | 1 | Fabrice Phung | |
107 | 1 | Fabrice Phung | N'oubliez pas de redémarrer l'application après toute modification. |
108 | 1 | Fabrice Phung | |
109 | 1 | Fabrice Phung | h2. Sauvegarde |
110 | 1 | Fabrice Phung | |
111 | 1 | Fabrice Phung | Les sauvegardes Redmine devraient inclure: |
112 | 1 | Fabrice Phung | * les données (stockées dans votre base de données redmine) |
113 | 1 | Fabrice Phung | * pièces jointes (stockées dans le répertoire @files@ de votre installation Redmine) |
114 | 1 | Fabrice Phung | |
115 | 1 | Fabrice Phung | Voici un simple script shell pouvant être utilisé pour des sauvegardes quotidiennes (à supposer que vous utilisez une base mysql): |
116 | 1 | Fabrice Phung | |
117 | 1 | Fabrice Phung | <pre> |
118 | 1 | Fabrice Phung | # Base |
119 | 1 | Fabrice Phung | /usr/bin/mysqldump -u <utilisateur> -p <motdepasse> <base_redmine> | gzip > /chemin/vers/sauvegarde/db/redmine_`date +%y_%m_%d`.gz |
120 | 1 | Fabrice Phung | |
121 | 1 | Fabrice Phung | # Pièces jointes |
122 | 1 | Fabrice Phung | rsync -a /chemin/vers/redmine/files /chemin/vers/sauvegarde/files |
123 | 1 | Fabrice Phung | </pre> |