Projet

Général

Profil

Wiki » Historique » Version 15

Patrice Nadeau, 2014-07-25 21:55

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