Commit f3b84d8fd7f6937179d6a1341c632b341e9e901d
1 parent
a83978ef
Exists in
master
and in
67 other branches
Fix activate plugins. Now it uses a rake task to activate all plugins that are enabled
Signed-off-by: Gabriela Navarro <navarro1703@gmail.com>
Showing
1 changed file
with
1 additions
and
5 deletions
Show diff stats
cookbooks/noosfero/recipes/default.rb
... | ... | @@ -43,11 +43,7 @@ execute 'plugins:enable' do |
43 | 43 | end |
44 | 44 | |
45 | 45 | execute 'plugins:activate' do |
46 | - plugins.each do |plugin| | |
47 | - plugin_name = plugin.split("_").collect(&:capitalize).join() + 'Plugin' | |
48 | - rails_command = "rails runner Environment.default.enable_plugin " | |
49 | - command "#{rails_command} #{plugin_name}" | |
50 | - end | |
46 | + command "RAILS_ENV=production bundle exec rake noosfero:plugins:enable_all_plugins" | |
51 | 47 | end |
52 | 48 | |
53 | 49 | execute 'theme:enable' do | ... | ... |