Giter VIP home page Giter VIP logo

Comments (9)

juanmcampos avatar juanmcampos commented on April 28, 2024 1

I made a PR with a quick fix :P maybe not the best solution but hope it helps #101

from blues-stack.

mcansh avatar mcansh commented on April 28, 2024

did you opt out of installing dependencies during "create-remix"? if not, a .env file should have been generated for you during "remix init" with the contents of .env.example https://github.com/remix-run/blues-stack/blob/main/remix.init/index.js#L63

if you do opt out, you should be seeing the following which prompts you to install your dependencies and run "npx remix init"

from blues-stack.

mcansh avatar mcansh commented on April 28, 2024

ah actually, re-read your issue, looks like the DB url the app has isn't correct (see undefined)

from blues-stack.

zevsdflkjiuxcvb avatar zevsdflkjiuxcvb commented on April 28, 2024

undefined

Yeah I know, but why? I should be ran, right ?

from blues-stack.

mcansh avatar mcansh commented on April 28, 2024

what's weird is there is no subdomain before .db.nor... so im not sure where the undefined is even coming from

from blues-stack.

juanmcampos avatar juanmcampos commented on April 28, 2024

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.

from blues-stack.

phifa avatar phifa commented on April 28, 2024

I just ran into the same issue. It's not fixed, is it?

from blues-stack.

machour avatar machour commented on April 28, 2024

@phifa if the issue is still open then most likely not. Check the pull request #101 and if it works for you, then comment there to validate it and get this fixed 👍

from blues-stack.

tylerdukedev avatar tylerdukedev commented on April 28, 2024

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:

import { PrismaClient } from "@prisma/client";

let db: PrismaClient;

declare global {
  var db: PrismaClient | undefined;
}

// PrismaClient is attached to the `global` object in development to prevent
// exhausting your database connection limit.
if (process.env.NODE_ENV === "production") {
  db = new PrismaClient();
  db.$connect();
} else {
  if (!global.db) {
    global.db = new PrismaClient();
    global.db.$connect();
  }

  db = global.db;
}

export default db;

Still doesn't work.~~

from blues-stack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.