My environment:
- JRuby 9.0.5.0 - Rails 4.2.5 - Hobo 2.2.4 - Torquebox 4 I am seeing an odd problem. The environment.rb file contains the following: Appname::Application.initialize! Rails.env='production' With the lines in this order, I get database adapter errors unless I retain valid test, development, and production database connection configurations, along with the databases themselves. Needless to say, I only want to configure the production database in the production environment; however, the app fails to start when only the production database is available. I can reverse the line order in environment.rb as follows: Rails.env='production' Appname::Application.initialize! When I do this, the database configuration errors are resolved. The app only cares about the production database; however, it stops finding the stylesheet and javascript files, as shown by these exceptions: Started GET "/javascripts/front.js" for 127.0.0.1 at 2016-02-01 20:16:42 -0700 Started GET "/stylesheets/front.css" for 127.0.0.1 at 2016-02-01 20:16:42 -0700 [1m [36m (1.0ms) [0m [1mSELECT version() [0m ActionController::RoutingError (No route matches [GET] "/stylesheets/front.css"): vendor/bundle/jruby/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' vendor/bundle/jruby/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' vendor/bundle/jruby/2.2.0/gems/railties-4.2.5/lib/rails/rack/logger.rb:38:in `call_app' vendor/bundle/jruby/2.2.0/gems/railties-4.2.5/lib/rails/rack/logger.rb:22:in `call' vendor/bundle/jruby/2.2.0/gems/request_store-1.3.0/lib/request_store/middleware.rb:9:in `call' vendor/bundle/jruby/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/request_id.rb:21:in `call' vendor/bundle/jruby/2.2.0/gems/rack-1.6.4/lib/rack/methodoverride.rb:22:in `call' vendor/bundle/jruby/2.2.0/gems/rack-1.6.4/lib/rack/runtime.rb:18:in `call' vendor/bundle/jruby/2.2.0/gems/activesupport-4.2.5/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' vendor/bundle/jruby/2.2.0/gems/rack-1.6.4/lib/rack/sendfile.rb:113:in `call' vendor/bundle/jruby/2.2.0/gems/railties-4.2.5/lib/rails/engine.rb:518:in `call' vendor/bundle/jruby/2.2.0/gems/railties-4.2.5/lib/rails/application.rb:165:in `call' ActionController::RoutingError (No route matches [GET] "/javascripts/front.js"): vendor/bundle/jruby/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' vendor/bundle/jruby/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' vendor/bundle/jruby/2.2.0/gems/railties-4.2.5/lib/rails/rack/logger.rb:38:in `call_app' vendor/bundle/jruby/2.2.0/gems/railties-4.2.5/lib/rails/rack/logger.rb:22:in `call' vendor/bundle/jruby/2.2.0/gems/request_store-1.3.0/lib/request_store/middleware.rb:9:in `call' vendor/bundle/jruby/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/request_id.rb:21:in `call' vendor/bundle/jruby/2.2.0/gems/rack-1.6.4/lib/rack/methodoverride.rb:22:in `call' vendor/bundle/jruby/2.2.0/gems/rack-1.6.4/lib/rack/runtime.rb:18:in `call' vendor/bundle/jruby/2.2.0/gems/activesupport-4.2.5/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' vendor/bundle/jruby/2.2.0/gems/rack-1.6.4/lib/rack/sendfile.rb:113:in `call' vendor/bundle/jruby/2.2.0/gems/railties-4.2.5/lib/rails/engine.rb:518:in `call' vendor/bundle/jruby/2.2.0/gems/railties-4.2.5/lib/rails/application.rb:165:in `call' Does anyone have any ideas as to how to resolve this? -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/hobousers. For more options, visit https://groups.google.com/d/optout.
