Projet

Général

Profil

Wiki » Historique » Version 16

Patrice Nadeau, 2014-08-03 11:40

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