Undev / redmine_close_button

Redmine Close Issue button plugin
https://github.com/Undev/redmine_close_button
Apache License 2.0
58 stars 30 forks source link

Web application could not be started #28

Closed sedrubal closed 8 years ago

sedrubal commented 10 years ago

Did the installation instructions and tried to restart redmine, I got an error page - I think from passenger. Is it right, that there will be a vendor directory created, when cloning the plugin from github? And this directory should be located in the root directory of redmne (/opt/redmine/vendor/plugins/redmine_close_button/) These are some of the given Informations:

exit (SystemExit)
  /opt/redmine/config/environment.rb:10:in `exit'
  /opt/redmine/config/environment.rb:10:in `'
  config.ru:3:in `require'
  config.ru:3:in `block in 
' /var/lib/gems/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval' /var/lib/gems/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize' config.ru:1:in `new' config.ru:1:in `
' /var/lib/gems/1.9.1/gems/passenger-4.0.52/helper-scripts/rack-preloader.rb:112:in `eval' /var/lib/gems/1.9.1/gems/passenger-4.0.52/helper-scripts/rack-preloader.rb:112:in `preload_app' /var/lib/gems/1.9.1/gems/passenger-4.0.52/helper-scripts/rack-preloader.rb:158:in `' /var/lib/gems/1.9.1/gems/passenger-4.0.52/helper-scripts/rack-preloader.rb:29:in `' /var/lib/gems/1.9.1/gems/passenger-4.0.52/helper-scripts/rack-preloader.rb:28:in `
' Error ID a354c211
akzhan commented 10 years ago

It should be at $REDMINE_ROOT/vendor/plugins/redmine_close_button/.

Error is very strange, please take a look what is in $REDMINE_ROOT/config/environment.rb at lines near 10th.

sedrubal commented 10 years ago

in line 10 there is:

exit 1

this is my config/environment.rb:

# Load the rails application
require File.expand_path('../application', __FILE__)
# Make sure there's no plugin in vendor/plugin before starting
vendor_plugins_dir = File.join(Rails.root, "vendor", "plugins")
if Dir.glob(File.join(vendor_plugins_dir, "*")).any?
  $stderr.puts "Plugins in vendor/plugins (#{vendor_plugins_dir}) are no longer allowed. " +
    "Please, put your Redmine plugins in the `plugins` directory at the root of your " +
    "Redmine directory (#{File.join(Rails.root, "plugins")})"
  exit 1
end
# Initialize the rails application
RedmineApp::Application.initialize!

Thank you

akzhan commented 10 years ago

Move plugin up to redmine_root /plugins/ folder.

sedrubal commented 10 years ago

Oh thank you, now it works :)