Project

General

Profile

Actions

Defect #26636

closed

Rails 5: "Page not found" error when accessing a page of a plugin in production mode

Added by Go MAEDA over 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Category:
Plugin API
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

Steps to reproduce:

1. Create a test plugin.

bin/rails g redmine_plugin foo
bin/rails g redmine_plugin_controller foo foo index
echo 'get "foo", :to => "foo#index"' >> plugins/foo/config/routes.rb

2. Run Redmine in production mode

bin/rails s -e production

3. Open http://localhost/foo and you will see "Page not found" error. No problem in development mode.

production.log:

Show


Related issues

Related to Redmine - Feature #23630: Migrate to Rails 5.2ClosedJean-Philippe Lang

Actions
Related to Redmine - Patch #30725: Plugin eager_load should depend on environment setting instead of nameClosedGo MAEDA

Actions
Actions

Also available in: Atom PDF