FrRedmineInstall » History » Version 1
Fabrice Phung, 2008-05-03 17:41
traduction du guide version 02052008
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 | 1 | Fabrice Phung | * Ruby on Rails 2.0.2 |
8 | 1 | Fabrice Phung | * Une base de données (voir les compatibilités plus bas) |
9 | 1 | Fabrice Phung | |
10 | 1 | Fabrice Phung | Optionnel: |
11 | 1 | Fabrice Phung | |
12 | 1 | Fabrice Phung | * binaires SVN (>= 1.3), pour la consultation des dépôts (doivent être atteignables dans votre PATH) |
13 | 1 | Fabrice Phung | * RMagick (export Gantt dans une image png) |
14 | 1 | Fabrice Phung | |
15 | 1 | Fabrice Phung | Bases de données supportées: |
16 | 1 | Fabrice Phung | |
17 | 1 | Fabrice Phung | * MySQL 4 ou ultiérieur (recommandé) |
18 | 1 | Fabrice Phung | * PostgreSQL 8 (non testé intensivement sur 8.3) |
19 | 1 | Fabrice Phung | * SQLite 3 (lire ceci: http://weblog.rubyonrails.org/2007/1/29/using-sqlite3-with-rails) |
20 | 1 | Fabrice Phung | |
21 | 1 | Fabrice Phung | h2. Installation |
22 | 1 | Fabrice Phung | |
23 | 1 | Fabrice Phung | 1. [[Download|Téléchargez]] et extrayez l'archive ou faites un [[CheckingoutRedmine|checkout]] de Redmine. |
24 | 1 | Fabrice Phung | |
25 | 1 | Fabrice Phung | 2. Créez une base de données vide nommée par exemple @redmine@. |
26 | 1 | Fabrice Phung | |
27 | 1 | Fabrice Phung | Pour MySQL: |
28 | 1 | Fabrice Phung | |
29 | 1 | Fabrice Phung | create database redmine character set utf8; |
30 | 1 | Fabrice Phung | |
31 | 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". |
32 | 1 | Fabrice Phung | |
33 | 1 | Fabrice Phung | Exemple pour une base de données MySQL: |
34 | 1 | Fabrice Phung | |
35 | 1 | Fabrice Phung | production: |
36 | 1 | Fabrice Phung | adapter: mysql |
37 | 1 | Fabrice Phung | database: redmine |
38 | 1 | Fabrice Phung | host: localhost |
39 | 1 | Fabrice Phung | username: bduser |
40 | 1 | Fabrice Phung | password: bdpasswd |
41 | 1 | Fabrice Phung | |
42 | 1 | Fabrice Phung | 4. Créez la structure de base en lançant la commande suivante depuis le répertoire racine de l'application: |
43 | 1 | Fabrice Phung | |
44 | 1 | Fabrice Phung | rake db:migrate RAILS_ENV="production" |
45 | 1 | Fabrice Phung | |
46 | 1 | Fabrice Phung | Ceci va créer les tables et le compte administrateur. |
47 | 1 | Fabrice Phung | |
48 | 1 | Fabrice Phung | 5. Insérez les données de la configuration par défaut dans la base en lançant la commande suivante: |
49 | 1 | Fabrice Phung | |
50 | 1 | Fabrice Phung | rake redmine:load_default_data RAILS_ENV="production" |
51 | 1 | Fabrice Phung | |
52 | 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. |
53 | 1 | Fabrice Phung | |
54 | 1 | Fabrice Phung | 6. Testez l'installation en lançant le serveur web WEBrick: |
55 | 1 | Fabrice Phung | |
56 | 1 | Fabrice Phung | ruby script/server -e production |
57 | 1 | Fabrice Phung | |
58 | 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. |
59 | 1 | Fabrice Phung | |
60 | 1 | Fabrice Phung | 7. Utilisez le compte administrateur par défaut pour vous connecter: |
61 | 1 | Fabrice Phung | |
62 | 1 | Fabrice Phung | * identifiant: admin |
63 | 1 | Fabrice Phung | * mot de passe: admin |
64 | 1 | Fabrice Phung | |
65 | 1 | Fabrice Phung | 8. Vous pouvez aller sur @Administration@ pour modifier la configuration de l'application. |
66 | 1 | Fabrice Phung | |
67 | 1 | Fabrice Phung | h2. Configuration du serveur SMTP |
68 | 1 | Fabrice Phung | |
69 | 1 | Fabrice Phung | Dans config/environment.rb, vous pouvez configurer les paramètres de votre serveur SMTP: |
70 | 1 | Fabrice Phung | |
71 | 1 | Fabrice Phung | * config.action_mailer.smtp_settings: configuration du serveur SMTP |
72 | 1 | Fabrice Phung | * config.action_mailer.perform_deliveries: mettre à false pour désactiver l'envoi de messages |
73 | 1 | Fabrice Phung | |
74 | 1 | Fabrice Phung | N'oubliez pas de redémarrer l'application après toute modification. |
75 | 1 | Fabrice Phung | |
76 | 1 | Fabrice Phung | h2. Sauvegarde |
77 | 1 | Fabrice Phung | |
78 | 1 | Fabrice Phung | Les sauvegardes Redmine devraient inclure: |
79 | 1 | Fabrice Phung | * les données (stockées dans votre base de données redmine) |
80 | 1 | Fabrice Phung | * pièces jointes (stockées dans le répertoire @files@ de votre installation Redmine) |
81 | 1 | Fabrice Phung | |
82 | 1 | Fabrice Phung | Voici un simple script shell pouvant être utilisé pour des sauvegardes quotidiennes (à supposer que vous utilisez une base mysql): |
83 | 1 | Fabrice Phung | |
84 | 1 | Fabrice Phung | <pre> |
85 | 1 | Fabrice Phung | # Base |
86 | 1 | Fabrice Phung | /usr/bin/mysqldump -u <utilisateur> -p <motdepasse> <base_redmine> | gzip > /chemin/vers/sauvegarde/db/redmine_`date +%y_%m_%d`.gz |
87 | 1 | Fabrice Phung | |
88 | 1 | Fabrice Phung | # Pièces jointes |
89 | 1 | Fabrice Phung | rsync -a /chemin/vers/redmine/files /chemin/vers/sauvegarde/files |
90 | 1 | Fabrice Phung | </pre> |