changed the way I change from development mode to production mode