Projet

Général

Profil

Wiki » Historique » Version 14

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