William Jin
WWasp
•Created by William Jin on 12/19/2024 in #🙋questions
Manipulating production database with fly.io and wasp db studio
@kapa.ai
I used the Wasp CLI to deployed my db (
skyblaze-db
). I followed the tutorial by:
Run fly proxy 5432 -a skyblaze-db
and got Proxying local port 5432 to remote [skyblaze-db.internal]:5432
Put DATABASE_URL
in my .env.server
: DATABASE_URL=postgres://postgres:<password>@localhost:5432/skyblaze-db
However I got
When I run wasp db studio
.
My question is:
1. is the database password something I got when first deployed to fly.io, with 15 characters? I got the message
2. If so, which sould be correct?
DATABASE_URL=postgres://postgres:<credential>@localhost:5432/skyblaze-db
or
DATABASE_URL=postgres://skyblaze_server:<credential>@skyblaze-db.flycast:5432/skyblaze_server?sslmode=disable
3. How should I fix the
?
Thanks!16 replies
WWasp
•Created by William Jin on 12/18/2024 in #🙋questions
Getting CORS issue when using Wasp CLI to deploy
@kapa.ai I'm experiencing a CORS issue, NOT using my own domain:
My
main.wasp
is like
And my src/serverSetup.ts
:
(My client URL is https://skyblaze-client.fly.dev
).
Seems the CORS settings do work on my local machine since when I removed http://localhost:3000
, it also throws a CORS error locally. I'm wondering whether there're something wrong in my serverSetup and middleware that causing this issue?43 replies