> 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-i/risky-deploy.md).

# 배포할 때마다 불안해요

운영 서버에 직접 반영하는 방식은 실수 시 복원이 어려워요.

### 지금의 상황

운영 서버에 소스를 **직접 반영하는 기존 방식**은 되돌리기가 어려워요.

* FTP로 파일을 올리면 이전 파일은 덮어써져요. **백업을 미리 안 해두면 복원이 불가능**해요
* 수정 후 문제가 생겨도 "정확히 어떤 파일을 되돌려야 하는지" 파악이 어려워요
* 테스트 환경 없이 운영 서버에서 바로 작업하면, **고객이 보는 쇼핑몰에 즉시 영향**을 줘요

> 소스 수정이 필요할 때마다 "이거 반영해도 괜찮을까?" 하는 불안이 반복돼요.

### 구체적인 불편 상황

| 상황          | 지금 방식              | 이상적인 방식              |
| ----------- | ------------------ | -------------------- |
| 배포 직후 에러 발생 | 수동 백업 없으면 복원 불가    | 직전 버전으로 원클릭 롤백       |
| 테스트 환경이 필요  | 별도 테스트 서버 구축 비용 부담 | 운영 서버 복제한 스테이징 서버 제공 |
| 배포 전 사전 확인  | 불가 (올려봐야 앎)        | 자동 사전 검증 후 배포        |

### 이 가이드에서 제공하는 해결

**Part 2**에서 소개할 **스테이징 서버**에서 충분히 테스트한 후 운영 서버에 반영할 수 있어요. 배포 전 **DB 구조·소스 코드 자동 검증**이 있고, 문제 시 **직전 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-i/risky-deploy.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.
