Wiki » Historique » Révision 4
Révision 3 (Pierre Blondeau, 30/08/2013 16:33) → Révision 4/5 (Pierre Blondeau, 30/08/2013 16:34)
h1. Installation
1 - Go to Redmine Dir
2 - Copy files to the plugins directory
<pre>
git clone --depth=1 https://forge.greyc.fr/git/redmine-delete-project vendor/plugins/redmine_delete_project
rm -rf vendor/plugins/redmine_delete_project/.git
</pre>
3 - Upgrade plugin and restart apache :
<pre>
rake db:migrate_plugins RAILS_ENV=production
service apache2 restart
</pre>
4 - Configure the plugins :
<pre>
Administration -> Plugins -> Configure
</pre>
5 - Allow Manager to delete project :
<pre>
Administration -> Roles and permissions -> Manager -> Check Delete Project
</pre>
6 - Enable "Delete Project" as default project module :
<pre>
Administration -> Settings -> Projects -> Check Delete Project
</pre>
h1. Compatibility with rails 3 :
Modify the file app/views/delete_project/index.html.erb by add "=" before the form_tag function ligne 10 :
<pre>
<%= form_tag :controller=>'delete_project', :action=>'submit' do %>
</pre>
h1. Active the module in all old project
Load procedure to MySQL and run it :
<pre>
mysql redmine < vendor/plugins/procedure.sql
mysql redmine -e "call update_project_enable_module ;"
</pre>