adding mount logic for rails apps public dirs