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

Commit

Permalink
更新 README.md,添加 Cloudinary 设置步骤和 Docker 操作示例
Browse files Browse the repository at this point in the history
  • Loading branch information
Aloento committed Jan 6, 2025
1 parent 90352f8 commit f7ee49a
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,24 @@

A Simple Personal Blog & Frontend Framework Course Sample Work

It has the same design as https://Aloen.to/
It has the same design as <https://Aloen.to/>

## Requirements
## Setup Cloudinary

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

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

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

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

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

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

- Run `pnpm run dev`
docker push $url/$organization/web:latest

kubectl apply -f k8s.yaml
```

0 comments on commit f7ee49a

Please sign in to comment.