Bug #14052
closedEnvironment selector does not show environments in production setup
Description
Seems we are missing the file somewhere
2016-03-04 16:43:05 [app] [F] | ActionController::RoutingError (No route matches [GET] "/javascripts/chef_proxy_environment_refresh.js"): | actionpack (4.1.5) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' | actionpack (4.1.5) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' | railties (4.1.5) lib/rails/rack/logger.rb:38:in `call_app' | railties (4.1.5) lib/rails/rack/logger.rb:22:in `call' | actionpack (4.1.5) lib/action_dispatch/middleware/request_id.rb:21:in `call' | rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' | rack (1.5.2) lib/rack/runtime.rb:17:in `call' | activesupport (4.1.5) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' | actionpack (4.1.5) lib/action_dispatch/middleware/static.rb:64:in `call' | rack (1.5.2) lib/rack/sendfile.rb:112:in `call' | railties (4.1.5) lib/rails/engine.rb:514:in `call' | railties (4.1.5) lib/rails/application.rb:144:in `call' | railties (4.1.5) lib/rails/railtie.rb:194:in `public_send' | railties (4.1.5) lib/rails/railtie.rb:194:in `method_missing' | rack (1.5.2) lib/rack/builder.rb:138:in `call' | rack (1.5.2) lib/rack/urlmap.rb:65:in `block in call' | rack (1.5.2) lib/rack/urlmap.rb:50:in `each' | rack (1.5.2) lib/rack/urlmap.rb:50:in `call' | /usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/rack/thread_handler_extension.rb:77:in `process_request' | /usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:140:in `accept_and_process_next_request' | /usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:108:in `main_loop' | /usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/request_handler.rb:441:in `block (3 levels) in start_threads' | logging (1.8.2) lib/logging/diagnostic_context.rb:323:in `call' | logging (1.8.2) lib/logging/diagnostic_context.rb:323:in `block in create_with_logging_context'
Updated by Dominic Cleal over 8 years ago
Packaging bug? I didn't notice 0.3.0 contained JS to be precompiled when I reviewed the updates, so it probably needs new precompilation steps adding to both packages. The engine.rb looks correct. Sorry!
Updated by Marek Hulán over 8 years ago
Yeah, there was one JS added https://github.com/theforeman/foreman_chef/commit/a81d3acf94c9bfa8211c7874e4c962d1dd80c8b4#diff-4826c87d361439d7ad4ff6f0ce1de2edR1 not sure what you mean by new precompilation steps.
Updated by Dominic Cleal over 8 years ago
Both RPMs and debs need to precompile any assets for them to be usable in the production env, which will generate a per-plugin manifest that's automatically loaded. Admittedly I'd expect a slightly different error to the one you got, but I've not seen the error yet on Rails 4 so it could just be a different message there.
Here are examples: https://github.com/theforeman/foreman-packaging/commit/e9ef79b3 / https://github.com/theforeman/foreman-packaging/commit/46ff3643
Updated by The Foreman Bot over 8 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman-packaging/pull/1050 added
Updated by The Foreman Bot over 8 years ago
- Pull request https://github.com/theforeman/foreman-packaging/pull/1051 added
Updated by Marek Hulán over 8 years ago
- Status changed from Ready For Testing to Closed
- Pull request https://github.com/theforeman/foreman_chef/pull/44 added