Projet

Général

Profil

Wiki » Historique » Version 17

Patrice Nadeau, 2014-08-03 11:41

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
22
h2. Apache
23
24 17 Patrice Nadeau
<pre><code class="bash">
25
    zypper install rubygem-passenger-apache2
26
</code></pre>
27 16 Patrice Nadeau
28 7 Patrice Nadeau
h1. Personalisation
29 8 Patrice Nadeau
30 1 Patrice Nadeau
h2. Plugins
31
32 4 Patrice Nadeau
h3. Redmine Rouge
33 12 Patrice Nadeau
34 1 Patrice Nadeau
Permet le support de langage supplémentaire pour l'affichage de la syntaxe d'un code source.
35 4 Patrice Nadeau
36 13 Patrice Nadeau
"Langage supporté":http://rouge.jayferd.us/demo
37 1 Patrice Nadeau
38
https://github.com/ngyuki/redmine_rouge
39
40
<pre>
41
<code class="bash">
42
cd /srv/redmine/plugins
43
git clone https://github.com/ngyuki/redmine_rouge.git
44
cd ..
45
bundle install
46 2 Patrice Nadeau
# Relancer redmine
47
rcredmine restart
48 1 Patrice Nadeau
</code>
49
</pre>
50 5 Patrice Nadeau
51 11 Patrice Nadeau
h3. redmine_codebutton
52 9 Patrice Nadeau
53 10 Patrice Nadeau
http://www.redmine.org/plugins/codehightlight_button
54 9 Patrice Nadeau
55
Bouton permettant de sélectionner du code et d'activer la syntaxe selon un langage.
56 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
57 9 Patrice Nadeau
58 1 Patrice Nadeau
Installation
59
<pre><code class="bash">
60 10 Patrice Nadeau
cd /srv/redmine/plugins
61
git clone https://github.com/mediatainment/redmine_codebutton.git
62
cd ..
63
rake redmine:plugins
64 9 Patrice Nadeau
rake redmine:plugins:migrate RAILS_ENV=production
65 10 Patrice Nadeau
# Relancer Redmine
66 1 Patrice Nadeau
rcredmine restart
67
</code></pre>
68 11 Patrice Nadeau
69
h3. Redmine Checklist plugin
70
71
Extends issues to store checklist items
72
73
http://redminecrm.com/projects/checklist
74
75
Installation
76
<pre><code class="bash">
77
cd /srv/redmine/plugins
78
wget http://redminecrm.com/license_manager/4200/redmine_issue_checklist-2_0_5.zip
79
unzip redmine_issue_checklist-2_0_5.zip
80
bundle exec rake redmine:plugins NAME=redmine_issue_checklist RAILS_ENV=production
81
# Relancer Redmine
82
rcredmine restart
83
</code></pre>
84
85
Configuration
86
Dans *Administration*
87
* *Plugins*
88
** Choisir les options voulues
89
* *Roles and permissions*
90
** Choisir le rôle
91
Donner les droits voulus sur :
92
*** Done checklist items 
93
*** Edit checklist items 
94 14 Patrice Nadeau
*** View checklist
95 1 Patrice Nadeau
96 14 Patrice Nadeau
h1. Mise à jour
97 1 Patrice Nadeau
98 14 Patrice Nadeau
S’assurer d'avoir les dernières versions des plugins.
99 9 Patrice Nadeau
100 14 Patrice Nadeau
h1. Copie de sécurité
101 5 Patrice Nadeau
102
<pre> <code class="bash">
103
#!/bin/bash
104
#
105
# backup_redmine.sh
106
# Backup of a Redmine setup
107
# Last Changes: 2013-02-23
108
# Maintainer: Patrice Nadeau  <patricen@telwarwick.net>
109
110
# TODO Verify the results (folder exist, enough disk pace , etc..)
111
112
## The only variable needed to be changed
113
# Directory of the Redmine install
114
declare -r RAIL_ROOT='/srv/redmine'
115
# MySQL database
116
declare -r MYSQL_DB=''
117
# MySQL username for the Redemine db
118
declare -r MYSQL_USER=''
119
# MySQL password for the Redemine db
120
declare -r MYSQL_PASSWORD=''
121
# Directory for the backup (must exist and with no space in the name)
122
declare -r DIR='/root'
123
## end
124
125
# Exit level
126
declare -ir EXIT_OK=0
127
declare -ir EXIT_WARNING=1
128
declare -ir EXIT_ERROR=2
129
130
declare -i STATUS=$EXIT_OK
131
132
# The directory inside the archive 
133
declare -r REDMINE='redmine'
134
TMP_DIR=$DIR/$REDMINE
135
136
# This will be used for the archive file 
137
declare -r DST=$DIR/redmine_$(date +%Y%m%d_%H%M%S).tar.gz
138
139
# The temporary sql file
140
declare -r TMP_MYSQL=$TMP_DIR/$MYSQL_DB.mysql
141
142
echo "Backup in progress in $DST"
143
144
#### Create the temp directory ####
145
mkdir $TMP_DIR
146
147
#### backup MySQL ####
148
if [ $STATUS -eq $EXIT_OK ] 
149
then
150
	STEP='Creating MySQL backup'
151
	mysqldump --user=$MYSQL_USER --password=$MYSQL_PASSWORD $MYSQL_DB \
152
		> $TMP_MYSQL
153
	STATUS=$?
154
fi
155
156
#### backup the Redmine folder ####
157
if [ $STATUS -eq $EXIT_OK ] 
158
then
159
	STEP='Creating Redmine'"'"' files backup'
160
	cp --recursive $RAIL_ROOT $TMP_DIR
161
	STATUS=$?
162
fi
163
164
#### create the archive file ####
165
if [ $STATUS -eq $EXIT_OK ] 
166
then
167
	STEP="Creating archive"
168
	tar --create --gzip --file $DST --directory=$DIR $REDMINE
169
	STATUS=$?
170
fi
171
172
#### cleanup ####
173
if [ $STATUS -eq $EXIT_OK ] 
174
then
175
	STEP='Cleaning up'
176
	rm --recursive --force $TMP_DIR
177
	STATUS=$?
178
fi
179
180
#### exit ####
181
if [ $STATUS -eq $EXIT_OK ] 
182
then
183
	echo "Backup done"
184
else
185
	echo "Bakup failed with error code $STATUS in step $STEP"
186
fi
187
188
189
exit $STATUS
190
191
</code></pre>