File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -106,6 +106,22 @@ command-line session on the machine. You can do this using `fly ssh console`.
106
106
The Dockerfile simplifies this further by adding a ` database-cli ` command. You
107
107
can connect to the live database by running ` fly ssh console -C database-cli ` .
108
108
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
+
109
125
## GitHub Actions
110
126
111
127
We use GitHub Actions for continuous integration and deployment. Anything that
You can’t perform that action at this time.
0 commit comments