Wiki » Historique » Version 4
Pierre Blondeau, 30/08/2013 16:34
1 | 1 | Pierre Blondeau | h1. Installation |
---|---|---|---|
2 | |||
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 | <pre> |
||
7 | 1 | Pierre Blondeau | git clone --depth=1 https://forge.greyc.fr/git/redmine-delete-project vendor/plugins/redmine_delete_project |
8 | 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 | <pre> |
||
13 | 1 | Pierre Blondeau | rake db:migrate_plugins RAILS_ENV=production |
14 | service apache2 restart |
||
15 | 2 | Pierre Blondeau | </pre> |
16 | 1 | Pierre Blondeau | |
17 | 2 | Pierre Blondeau | 4 - Configure the plugins : |
18 | <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 | <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 | <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 | |||
34 | Modify the file app/views/delete_project/index.html.erb by add "=" before the form_tag function ligne 10 : |
||
35 | <pre> |
||
36 | <%= form_tag :controller=>'delete_project', :action=>'submit' do %> |
||
37 | </pre> |
||
38 | |||
39 | 3 | Pierre Blondeau | h1. Active the module in all old project |
40 | |||
41 | Load procedure to MySQL and run it : |
||
42 | <pre> |
||
43 | mysql redmine < vendor/plugins/procedure.sql |
||
44 | mysql redmine -e "call update_project_enable_module ;" |
||
45 | </pre> |