Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Jruby on Rails application changes initialization sequence when used with jdbc adapter #5644
jruby 220.127.116.11 (2.3.3)
Other relevant info you may wish to add:
Initilization sequence should load enviornments/developemet.rb or production.rb before database.yaml is executed
I had been working on my rails application with ruby 2.3.3 and everything was working fine . I had requirement to create war package from my existing rails code, so I switched to jruby and installed required gems . as soon as i start my sever in production mode or development mode Rails stats processing database.yaml and none of initializers files or the group files (production.rb or development.rb files under config/enviornments) are loaded before that (they are loaded after database.yaml is initialised). This does not happen when using ruby and associated mysql gem.
not sure how much jruby-rack affects the initialization order, but it sure does not patch any Rails internals.