precompile function in production.rb