New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error connect database #88
Comments
did you opt out of installing dependencies during "create-remix"? if not, a if you do opt out, you should be seeing the following which prompts you to install your dependencies and run "npx remix init" |
ah actually, re-read your issue, looks like the DB url the app has isn't correct (see |
Yeah I know, but why? I should be ran, right ? |
what's weird is there is no subdomain before |
It seems to come from db.server.ts file there is a conditional if (!isLocalHost) { } which sets the databaseurl for FLY_REGION which if you are not using and you are not localhost then it breaks. |
I made a PR with a quick fix :P maybe not the best solution but hope it helps #101 |
I just ran into the same issue. It's not fixed, is it? |
UPDATE: ~~Anyone find a solution for this? I'm running in to the same issue. I've altered my db.server file to something more generic:
Still doesn't work.~~ |
Have you experienced this bug with the latest version of the template?
yes
Steps to Reproduce
Run
npx create-remix --template remix-run/blues-stack
in consolethen
npm run dev
, I get this errorHere is my db URL in .env file:
DATABASE_URL="postgresql://postgres:norqgrhigqygxsywkasp@db.norqgrhigqygxsywkasp.supabase.co:5432/postgres"
Expected Behavior
Just hope plug and run :(
Actual Behavior
The text was updated successfully, but these errors were encountered: