Project

General

Profile

Actions

Bug #14052

closed

Environment selector does not show environments in production setup

Added by Marek Hulán about 8 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
foreman_chef
Target version:

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'

Actions #1

Updated by Dominic Cleal about 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!

Actions #3

Updated by Dominic Cleal about 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

Actions #4

Updated by The Foreman Bot about 8 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman-packaging/pull/1050 added
Actions #5

Updated by The Foreman Bot about 8 years ago

  • Pull request https://github.com/theforeman/foreman-packaging/pull/1051 added
Actions #6

Updated by Marek Hulán about 8 years ago

  • Status changed from Ready For Testing to Closed
  • Pull request https://github.com/theforeman/foreman_chef/pull/44 added
Actions

Also available in: Atom PDF