Actions
Bug #13171
closedPlugins with /public/assets prevent Rails starting in development environment
Description
When a plugin is registered that has a /public/assets directory in its root, Rails can't start up in the development environment. This happens because the assets initialiser tries to serve the public/ directory.
/home/dcleal/.rvm/gems/ruby-2.0.0-p353@foreman/gems/actionpack-4.1.5/lib/action_dispatch/middleware/stack.rb:112:in `push': can't modify frozen Array (RuntimeError) from /home/dcleal/.rvm/gems/ruby-2.0.0-p353@foreman/gems/actionpack-4.1.5/lib/action_dispatch/middleware/stack.rb:112:in `use' from /home/dcleal/code/foreman/foreman/config/initializers/assets.rb:66:in `block (2 levels) in <top (required)>' from /home/dcleal/code/foreman/foreman/config/initializers/assets.rb:64:in `each' from /home/dcleal/code/foreman/foreman/config/initializers/assets.rb:64:in `block in <top (required)>' from /home/dcleal/.rvm/gems/ruby-2.0.0-p353@foreman/gems/railties-4.1.5/lib/rails/railtie.rb:210:in `instance_eval' from /home/dcleal/.rvm/gems/ruby-2.0.0-p353@foreman/gems/railties-4.1.5/lib/rails/railtie.rb:210:in `configure' from /home/dcleal/.rvm/gems/ruby-2.0.0-p353@foreman/gems/railties-4.1.5/lib/rails/railtie.rb:182:in `configure' from /home/dcleal/code/foreman/foreman/config/initializers/assets.rb:2:in `<top (required)>'
This can happen if you've used the plugin:assets:precompile
rake task as used in packages.
Updated by Dominic Cleal about 9 years ago
- Related to Refactor #12914: update rails configuration files to match to 4.1 syntax added
Updated by Ohad Levy about 9 years ago
the workaround is simply to delete the public/assets directory (as its generated via the assets precompile task).
Updated by The Foreman Bot about 9 years ago
- Status changed from New to Ready For Testing
- Assignee set to Eric Helms
- Pull request https://github.com/theforeman/foreman/pull/3103 added
Updated by Eric Helms about 9 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 8fd3f74be401cfb32d8abfb973f41c5109799130.
Actions