Skip to content

Commit 2b6f3a2

Browse files
committed
update readme
1 parent 72e6cfb commit 2b6f3a2

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,26 @@
2323
4. 启动服务: `docker-compose up -d`
2424
5. 第一次启动或有新增表结构时,进入payload容器,`npm install -g pnpm`,然后执行`pnpm payload migrate:create``pnpm payload migrate`
2525

26+
### 服务端更新代码
27+
28+
```bash
29+
# 暂存修改
30+
git stash push -- docker-compose.yml
31+
32+
# 更新 main 分支
33+
git pull
34+
35+
# 拉取 build 分支最新
36+
git fetch origin build
37+
38+
# 只恢复 .next 文件到当前工作目录,不加入暂存区
39+
git restore --source origin/build .next
40+
# git restore --source origin/build --staged --worktree .next
41+
42+
# 恢复修改
43+
git stash pop
44+
```
45+
2646
## Command
2747

2848
### docker-compose

0 commit comments

Comments
 (0)