how to check if current rails environment is production code example Example: rails how to check environment # from app root run rails r "puts Rails.env"