> For the complete documentation index, see [llms.txt](https://godomall-help.nhn-commerce.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://godomall-help.nhn-commerce.com/devsource/part-ii/benefit-rollback.md).

# 문제 시 되돌리기

배포 후 문제가 생겨도 직전 버전으로 롤백할 수 있어요.

### 무엇이 달라져요

배포 후 문제가 발견되면 **직전 배포 버전으로 되돌릴 수 있어요**.

* 운영 쇼핑몰에 영향이 가기 전 **사전 자동 검증** 단계가 있어요
* 배포 후에도 **직전 1건 수동 롤백**이 가능해요
* 롤백 이력도 배포 내역에 그대로 기록돼요

### 3단계 안전장치

#### 1단계. 배포 전 사전 검증

배포하기 프로세스에서 **DB 구조·소스 코드를 자동 검증**해요.

* DB 스키마 불일치 → 배포 차단, 리포트 다운로드 + 재검증 가능
* 소스 검증 통과 항목만 다음 단계로 진행

#### 2단계. 배포 실행 중 자동 롤백

배포 중 오류 발생 시 시스템이 **자동으로 직전 상태로 복원**해요. 운영자가 별도로 조치할 필요 없어요.

#### 3단계. 배포 후 수동 롤백

배포가 성공했지만 사후 확인 중 문제 발견 시, `[쇼핑몰 소스관리 > 배포 내역]`에서 **직전 1건 롤백** 버튼을 사용할 수 있어요.

> ※ 롤백은 **직전 배포 버전으로만** 가능해요. 2단계 이전으로는 되돌릴 수 없어요.

### 실제 활용 예시

> **상황**: 배포 후 결제 페이지에 문제 발생.
>
> **기존**: 수동 백업이 있는지 확인 → 없으면 에이전시에 복원 요청 → 수 시간\~하루 대기.
>
> **개발소스관리**: 배포 내역에서 직전 버전으로 **원클릭 롤백** → 수 분 내 복구, 원인 분석은 롤백 후 진행.

### 롤백이 안 되는 경우

아래 경우엔 수동 롤백이 제한될 수 있으니 참고해 주세요:

* 직전 배포 이후 2번째 배포가 이미 진행된 경우 → 2단계 이전 롤백 불가
* DB 구조가 크게 변경된 배포의 경우 → DB 롤백은 별도 대응 필요 (1:1 문의)

***

👉 다음: 시작 단계


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://godomall-help.nhn-commerce.com/devsource/part-ii/benefit-rollback.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
