Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanberckmans committed Jul 15, 2024
1 parent f17f6c1 commit 768e0f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/service/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# deploy

1. ensure node version from `.nvmrc`
1. ensure node v20+
1. in monorepo root directory: `yarn && yarn build`
1. follow SSL cert instructions below
1. in this directory: `yarn run`
1. in this directory: `yarn start`

## One-time setup SSL certs for grpc server

grpc requires an SSL connection or it won't run, so we generate a self-signed certificate:

1. complete CA instructions at: https://connectrpc.com/docs/node/getting-started/#use-the-grpc-protocol-instead-of-the-connect-protocol
1. if those instructions were successful, then mkcert generated `localhost+2.pem` and `localhost+2-key.pem` in this `packages/service` directory which are expected by the grpc server
1. `mkcert` must be in `PATH` and then `yarn run`
1. `mkcert` must be in `PATH` and then `yarn start`
1 change: 0 additions & 1 deletion packages/service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
"depcheck": "depcheck",
"gen": "npx buf generate proto",
"lint": "yarn eslint . --max-warnings 0 && buf lint",
"run": "yarn build && yarn start",
"start": "yarn start:prod",
"start:dev": "NODE_EXTRA_CA_CERTS=\"$(mkcert -CAROOT)/rootCA.pem\" dotenvx run -- npx tsx src/server.ts",
"start:prod": "yarn build && NODE_EXTRA_CA_CERTS=\"$(mkcert -CAROOT)/rootCA.pem\" dotenvx run -- node build/out.js",
Expand Down

0 comments on commit 768e0f8

Please sign in to comment.