Giter Site home page Giter Site logo

Comments (13)

Dhravya avatar Dhravya commented on September 14, 2024 1

Yeah! I think this is because the remote database migrations aren't there i guess?
I'm looking into it. Thanks for letting me know

from cloudflare-saas-stack.

Dhravya avatar Dhravya commented on September 14, 2024 1

When you run it locally, the database used is actually a local sqlite instance.
When deployed, it uses a remote version of the same database.

cd apps/web && wrangler d1 execute ${YOUR-DATABASE-NAME} --file=migrations/0000_setup.sql --remote

from cloudflare-saas-stack.

DiogoDuart3 avatar DiogoDuart3 commented on September 14, 2024

Same here, must be something to do with the wrangler file that sets up the database

from cloudflare-saas-stack.

DiogoDuart3 avatar DiogoDuart3 commented on September 14, 2024

Nah, by following the readme it will run the migrations on the cloudflare database and it works locally, its the cloudflare deployment that didnt read that file i guess

from cloudflare-saas-stack.

DiogoDuart3 avatar DiogoDuart3 commented on September 14, 2024

The latest version of drizzle orm removed the driver "d1" and now has "d1-http"

from cloudflare-saas-stack.

Dhravya avatar Dhravya commented on September 14, 2024

Right, makes sense :)

there's a PR by @CodeTorso which i'll merge soon but that's the steps to fix it!

from cloudflare-saas-stack.

abaudhuin avatar abaudhuin commented on September 14, 2024

Great. Feels kinda weird that there is no error anywhere though

from cloudflare-saas-stack.

DiogoDuart3 avatar DiogoDuart3 commented on September 14, 2024

This is the error from the cloudflare functions
image

from cloudflare-saas-stack.

Dhravya avatar Dhravya commented on September 14, 2024

I fixed this issue in the setup script

from cloudflare-saas-stack.

DiogoDuart3 avatar DiogoDuart3 commented on September 14, 2024

Running "bunx wrangler d1 migrations apply DB_NAME --remote" worked

from cloudflare-saas-stack.

Dhravya avatar Dhravya commented on September 14, 2024

Perfect!

from cloudflare-saas-stack.

Dhravya avatar Dhravya commented on September 14, 2024

@abaudhuin can you confirm this too?

from cloudflare-saas-stack.

abaudhuin avatar abaudhuin commented on September 14, 2024

yes, I confirm it's deployed now!
Thanks

from cloudflare-saas-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.