Skip to content
This repository was archived by the owner on Jan 7, 2025. It is now read-only.

Commit f7ee49a

Browse files
committed
更新 README.md,添加 Cloudinary 设置步骤和 Docker 操作示例
1 parent 90352f8 commit f7ee49a

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

README.md

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,24 @@
22

33
A Simple Personal Blog & Frontend Framework Course Sample Work
44

5-
It has the same design as https://Aloen.to/
5+
It has the same design as <https://Aloen.to/>
66

7-
## Requirements
7+
## Setup Cloudinary
88

9-
- NodeJS
10-
- PNPM
9+
```sh
10+
echo $(cat ~/.kube/config | base64) | tr -d " "
1111

12-
## Setup
12+
printf "$swr_ak" | openssl dgst -binary -sha256 -hmac "$SK" | od -An -vtx1 | sed 's/[ \n]//g' | sed 'N;s/\n//'
1313

14-
- Run `corepack enable`
14+
docker login -u $project@$swr_ak -p $swr_sk $url
1515

16-
- `cd` where `package.json` is located
16+
docker build -t $url/$organization/pgdb:latest -f Dockerfile.pg .
1717

18-
- Run `pnpm install`
18+
docker push $url/$organization/pgdb:latest
1919

20-
- Run `npx prisma generate`
20+
docker build -t $url/$organization/web:latest -f Dockerfile.web .
2121

22-
- Run `pnpm run dev`
22+
docker push $url/$organization/web:latest
23+
24+
kubectl apply -f k8s.yaml
25+
```

0 commit comments

Comments
 (0)