added config.assets.initialize_on_precompile and set it to true