redmine_github_hook
redmine_github_hook copied to clipboard
RoutingError with sub-uri
I installed redmine with sub-uri(www.mydomain.com/redmine).
With your kind installation guide, I successfully installed Redmine Github Hook plugin which shows in Plugin pages.
But when I try POST and GET with www.mydomain.com/redmine/github_hook, both of them make routing error.
Weird thing is, I used bundle and found nothing in redmine/plugins folder. Is this normal situation?
What can I do with this problem?
Environment:
Redmine version 3.2.0.stable.14983
Ruby version 2.2.4-p230 (2015-12-16) [x86_64-linux]
Rails version 4.2.5
Environment production
Database adapter Mysql2
SCM:
Subversion 1.8.8
Git 1.9.1
Filesystem
Redmine plugins:
redmine_github_hook 2.2.0
ActionController::RoutingError (No route matches [POST] "/redmine/github_hook"):
actionpack (4.2.5) lib/action_dispatch/middleware/debug_exceptions.rb:21:in call' actionpack (4.2.5) lib/action_dispatch/middleware/show_exceptions.rb:30:incall'
railties (4.2.5) lib/rails/rack/logger.rb:38:in call_app' railties (4.2.5) lib/rails/rack/logger.rb:20:inblock in call'
activesupport (4.2.5) lib/active_support/tagged_logging.rb:68:in block in tagged' activesupport (4.2.5) lib/active_support/tagged_logging.rb:26:intagged'
activesupport (4.2.5) lib/active_support/tagged_logging.rb:68:in tagged' railties (4.2.5) lib/rails/rack/logger.rb:20:incall'
actionpack (4.2.5) lib/action_dispatch/middleware/request_id.rb:21:in call' rack (1.6.4) lib/rack/methodoverride.rb:22:incall'
rack (1.6.4) lib/rack/runtime.rb:18:in call' activesupport (4.2.5) lib/active_support/cache/strategy/local_cache_middleware.rb:28:incall'
actionpack (4.2.5) lib/action_dispatch/middleware/static.rb:116:in call' rack (1.6.4) lib/rack/sendfile.rb:113:incall'
railties (4.2.5) lib/rails/engine.rb:518:in call' railties (4.2.5) lib/rails/application.rb:165:incall'
railties (4.2.5) lib/rails/railtie.rb:194:in public_send' railties (4.2.5) lib/rails/railtie.rb:194:inmethod_missing'
puma (2.15.3) lib/puma/configuration.rb:79:in call' puma (2.15.3) lib/puma/server.rb:541:inhandle_request'
puma (2.15.3) lib/puma/server.rb:388:in process_client' puma (2.15.3) lib/puma/server.rb:270:inblock in run'
puma (2.15.3) lib/puma/thread_pool.rb:106:in call' puma (2.15.3) lib/puma/thread_pool.rb:106:inblock in spawn_thread'
ActionController::RoutingError (No route matches [GET] "/redmine/github_hook"):
actionpack (4.2.5) lib/action_dispatch/middleware/debug_exceptions.rb:21:in call' actionpack (4.2.5) lib/action_dispatch/middleware/show_exceptions.rb:30:incall'
railties (4.2.5) lib/rails/rack/logger.rb:38:in call_app' railties (4.2.5) lib/rails/rack/logger.rb:20:inblock in call'
activesupport (4.2.5) lib/active_support/tagged_logging.rb:68:in block in tagged' activesupport (4.2.5) lib/active_support/tagged_logging.rb:26:intagged'
activesupport (4.2.5) lib/active_support/tagged_logging.rb:68:in tagged' railties (4.2.5) lib/rails/rack/logger.rb:20:incall'
actionpack (4.2.5) lib/action_dispatch/middleware/request_id.rb:21:in call' rack (1.6.4) lib/rack/methodoverride.rb:22:incall'
rack (1.6.4) lib/rack/runtime.rb:18:in call' activesupport (4.2.5) lib/active_support/cache/strategy/local_cache_middleware.rb:28:incall'
actionpack (4.2.5) lib/action_dispatch/middleware/static.rb:116:in call' rack (1.6.4) lib/rack/sendfile.rb:113:incall'
railties (4.2.5) lib/rails/engine.rb:518:in call' railties (4.2.5) lib/rails/application.rb:165:incall'
railties (4.2.5) lib/rails/railtie.rb:194:in public_send' railties (4.2.5) lib/rails/railtie.rb:194:inmethod_missing'
puma (2.15.3) lib/puma/configuration.rb:79:in call' puma (2.15.3) lib/puma/server.rb:541:inhandle_request'
puma (2.15.3) lib/puma/server.rb:388:in process_client' puma (2.15.3) lib/puma/server.rb:270:inblock in run'
puma (2.15.3) lib/puma/thread_pool.rb:106:in call' puma (2.15.3) lib/puma/thread_pool.rb:106:inblock in spawn_thread'
Thanks for reporting this! I didn't even know Redmine supported serving itself from a sub URI.
Looking at http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_in_a_sub-URI there are quite a few ways you could have achieved this; which method have you used to configure Redmine to run in this way?
I saw that page, and used "Using Unicorn+Nginx" configuration.
Have the same issue. Any update on this?
Looking at http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_in_a_sub-URI there are quite a few ways you could have achieved this; which method have you used to configure Redmine to run in this way?