Changing deployment flag to environment variable