I’m not exactly sure how this would work. I have a Remix react application running through Cloudflare pages. I can run server side code on there. For example, I have a form that on submit sends server side code having to do with Stripe payments.
Now I’m just wondering how would I go about connecting with my EdgeDB database from my website so that I can insert new data. Is it even possible?
You could also connect to your EdgeDB via HTTPS but that would require you to slightly modify your fly.toml to add [[services]] that maps internal ports to external ports.
This means that your edgedb listens to port 1234 (change this internal_port to the correct value) and its mapped yo ports 80 and 443 which means you can connect via HTTP through https://your-app-name.fly.dev
Dont forget to deploy after changing your fly.toml
The other route would be making your other hosting provider have Wireguard and setup a tunnel from Fly.io to there which is not that hard but takes time to setup.
i’m in the same situation, trying to run Remix + EdgeDB on fly.io
how did you end up connecting Remix and EdgeDB servers? Everything works locally for me (I have used the blues stack recipe), and I have successfully set up EdgeDB + postgres servers on Fly.io and I have them talking to each other, I just can’t complete the puzzle of connecting my Remix app to EdgeDB. I have the EDGEDB_DSN secret set, but not sure how to run the migration on deploy as it keeps complaining that edgedb is an unknown command (as expected), and even adding RUN curl https://sh.edgedb.com --proto '=https' -sSf1 | sh to my Remix app Docker image didn’t help.
Hey, I had to give up on EdgeDB and move to MySQL . It was just too much hassle and I needed to set everything up to be running soon. I’d recommend making your own post to try and get help on this issue.