Skip to content

Commit 2c13e72

Browse files
authored
docs(deployment): connect with prisma studio to deployed app (#244)
1 parent dfaefb9 commit 2c13e72

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/deployment.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,22 @@ command-line session on the machine. You can do this using `fly ssh console`.
106106
The Dockerfile simplifies this further by adding a `database-cli` command. You
107107
can connect to the live database by running `fly ssh console -C database-cli`.
108108

109+
To connect to the deployed database from your local machine using Prisma Studio,
110+
you can utilize Fly's `ssh` and `proxy` commands.
111+
112+
- Run in one terminal the command to start Prisma Studio on your desired Fly app
113+
```sh
114+
fly ssh console -C "npm run prisma:studio" --app [YOUR_APP_NAME]
115+
```
116+
- Run in a second terminal the command to proxy your local port 5556 to
117+
Prisma Studio
118+
```sh
119+
fly proxy 5556:5555 --app [YOUR_APP_NAME]
120+
```
121+
122+
To work with Prisma Studio and your deployed app's database, simply open
123+
`http://localhost:5556` in your browser.
124+
109125
## GitHub Actions
110126

111127
We use GitHub Actions for continuous integration and deployment. Anything that

0 commit comments

Comments
 (0)