read rack_env from deploy, fallback to app setting rack_env or rails_env