Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,25 @@ bun run dev

Open [http://localhost:8080](http://localhost:8080). The JSON endpoint is
available at [http://localhost:8080/api/users](http://localhost:8080/api/users).

## Connect and deploy

Connect this repository to a Prisma Compute project. Every push to the
connected branch then builds and deploys automatically.

```bash
bun run compute:connect
```

After connecting, open the running service with:

```bash
bun run compute:open
```

Each push creates a build. To stream the full build log, copy the build ID
from the GitHub check run and run:

```bash
npx -y @prisma/cli@next build logs <build-id>
```
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@
"db:generate": "prisma generate",
"db:migrate": "prisma migrate dev",
"db:seed": "prisma db seed",
"compute:login": "bunx @prisma/cli@latest auth login",
"compute:database:create": "bunx @prisma/cli@latest database create compute-deploy-example --branch main",
"compute:deploy": "bunx @prisma/cli@latest app deploy --env .env",
"compute:open": "bunx @prisma/cli@latest app open",
"compute:logs": "bunx @prisma/cli@latest app logs"
"compute:login": "bunx @prisma/cli@next auth login",
"compute:database:create": "bunx @prisma/cli@next postgres create compute-deploy-example --branch main",
"compute:connect": "bunx @prisma/cli@next git connect",
"compute:open": "bunx @prisma/cli@next service open"
},
"dependencies": {
"@hono/node-server": "2.0.4",
Expand Down