Projet

Général

Profil

Wiki » Historique » Version 20

Patrice Nadeau, 2014-08-13 19:14

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