Skip to content

Commit

Permalink
Add STORAGE env to vercel deployment script, and update README
Browse files Browse the repository at this point in the history
  • Loading branch information
greensea committed Dec 15, 2022
1 parent 9092496 commit 1e09074
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ npm i -g vercel
Then run:
```shell
cp .env .env.production
./vercel-deploy.sh
```
Expand Down
1 change: 1 addition & 0 deletions README.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ npm i -g vercel
然后直接在代码目录下运行:
```shell
cp .env .env.production
./vercel-deploy.sh
```
Expand Down
2 changes: 1 addition & 1 deletion vercel-deploy.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
export $(xargs <.env.production)
vercel -e S3_ENDPOINT=$S3_ENDPOINT -e S3_BUCKET=$S3_BUCKET -e S3_ACCESS_KEY=$S3_ACCESS_KEY -e S3_SECRET_KEY=$S3_SECRET_KEY --prod
vercel -e STORAGE=$STORAGE -e STORAGE_PATH=$STORAGE_PATH -e GIN_MODE=$GIN_MODE -e S3_ENDPOINT=$S3_ENDPOINT -e S3_BUCKET=$S3_BUCKET -e S3_ACCESS_KEY=$S3_ACCESS_KEY -e S3_SECRET_KEY=$S3_SECRET_KEY --prod

0 comments on commit 1e09074

Please sign in to comment.