Skip to content

Commit

Permalink
Improve deployment instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
s-h-a-d-o-w committed Nov 7, 2024
1 parent 2472c8d commit 226d283
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
uses: pnpm/action-setup@v4
with:
version: 9
- name: Use Node.js 20
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
- name: Install, test, deploy
run: |
pnpm install --frozen-lockfile
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ I'm using relatively few dependencies that front-end engineers are likely famili
- A GitHub OAuth app (provides ID and SECRET values for `.env`)
- ChatGPT API key

## Getting started (vercel/docker)
## Getting started

- Add secrets either on vercel or in your docker environment based on `.env.schema`
- Deploy 🚀
- Add secrets to whatever environment you will run this in based on `.env.schema`.
- (At least with the combination of CapRover and cloudflare for HTTPS, it is necessary to tick "WebSocket support" in the app settings in CapRover for streaming to work. I don't know why, since that is done via fetch, not websockets but that's what I've observed.)
- Deploy like any node app. 🚀 (See `Dockerfile`, `deploy.sh` and the github workflow for inspiration if you're not using a platform that automatically does these things for you.)

## Getting started (dev)

Expand Down

0 comments on commit 226d283

Please sign in to comment.