Project

General

Profile

Wiki » History » Version 4

Pierre Blondeau, 08/30/2013 04:34 PM

1 1 Pierre Blondeau
h1. Installation
2 1 Pierre Blondeau
3 2 Pierre Blondeau
1 - Go to Redmine Dir
4 1 Pierre Blondeau
5 2 Pierre Blondeau
2 - Copy files to the plugins directory
6 2 Pierre Blondeau
<pre>
7 1 Pierre Blondeau
git clone --depth=1 https://forge.greyc.fr/git/redmine-delete-project vendor/plugins/redmine_delete_project
8 1 Pierre Blondeau
rm -rf vendor/plugins/redmine_delete_project/.git
9 2 Pierre Blondeau
</pre>
10 1 Pierre Blondeau
11 2 Pierre Blondeau
3 - Upgrade plugin and restart apache :
12 2 Pierre Blondeau
<pre>
13 1 Pierre Blondeau
rake db:migrate_plugins RAILS_ENV=production
14 1 Pierre Blondeau
service apache2 restart
15 2 Pierre Blondeau
</pre>
16 1 Pierre Blondeau
17 2 Pierre Blondeau
4 - Configure the plugins :
18 2 Pierre Blondeau
<pre>
19 1 Pierre Blondeau
Administration -> Plugins -> Configure
20 2 Pierre Blondeau
</pre>
21 1 Pierre Blondeau
22 2 Pierre Blondeau
5 - Allow Manager to delete project :
23 2 Pierre Blondeau
<pre>
24 1 Pierre Blondeau
Administration -> Roles and permissions -> Manager -> Check Delete Project
25 2 Pierre Blondeau
</pre>
26 1 Pierre Blondeau
27 2 Pierre Blondeau
6 - Enable "Delete Project" as default project module :
28 2 Pierre Blondeau
<pre>
29 1 Pierre Blondeau
Administration -> Settings -> Projects -> Check Delete Project
30 2 Pierre Blondeau
</pre>
31 3 Pierre Blondeau
32 4 Pierre Blondeau
h1. Compatibility with rails 3 :
33 4 Pierre Blondeau
34 4 Pierre Blondeau
Modify the file app/views/delete_project/index.html.erb by add "=" before the form_tag function ligne 10 :
35 4 Pierre Blondeau
<pre>
36 4 Pierre Blondeau
<%= form_tag :controller=>'delete_project', :action=>'submit' do %>
37 4 Pierre Blondeau
</pre>
38 4 Pierre Blondeau
39 3 Pierre Blondeau
h1. Active the module in all old project
40 3 Pierre Blondeau
41 3 Pierre Blondeau
Load procedure to MySQL and run it :
42 3 Pierre Blondeau
<pre>
43 3 Pierre Blondeau
mysql redmine < vendor/plugins/procedure.sql
44 3 Pierre Blondeau
mysql redmine -e "call update_project_enable_module ;"
45 3 Pierre Blondeau
</pre>