fix bug for production env, set precompile options for Heroku