4031 Use a gem to distiguse Dev and staging