W
Wasp-lang2w ago
Kbk

proxy db to locacl host and open db studio

hello do you remember how to proxy db to localhost?
3 Replies
kapa.ai
kapa.ai2w ago
Hi @Kbk. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Sure, to proxy your database to localhost, you can use the fly proxy command. Here's an example:
fly proxy 5432 -a <db-name>
fly proxy 5432 -a <db-name>
Replace <db-name> with the name of your database. This command will open a tunnel to your database, making it available on your local machine. After you've set up the proxy, you can open Prisma Studio with the wasp db studio command. This will allow you to interact with your database through a graphical interface. Please note that you should be careful with the commands you execute while connected to the production database. For more details, you can refer to this Github issue (https://github.com/wasp-lang/wasp/issues/1464). ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @Kbk, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
miho
miho2w ago
hello do you remember how to proxy db to localhost?
If you want to access the database on Fly: https://github.com/wasp-lang/learning-materials/?tab=readme-ov-file#running-wasp-db-studio-on-production-db
GitHub
GitHub - wasp-lang/learning-materials: A place to collect some usef...
A place to collect some useful learning materials for Wasp - wasp-lang/learning-materials
Kbk
Kbk2w ago
yes this is what i was looking for thx :))))
Want results from more Discord servers?
Add your server