Add missing 'end' to production env.