added rails environment for precompile