Tried fix found online, setting initialize_on_precompile to false in application.rb