Comments (13)
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.
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.
Same here, must be something to do with the wrangler file that sets up the database
from cloudflare-saas-stack.
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.
The latest version of drizzle orm removed the driver "d1" and now has "d1-http"
from cloudflare-saas-stack.
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.
Great. Feels kinda weird that there is no error anywhere though
from cloudflare-saas-stack.
This is the error from the cloudflare functions
from cloudflare-saas-stack.
I fixed this issue in the setup script
from cloudflare-saas-stack.
Running "bunx wrangler d1 migrations apply DB_NAME --remote" worked
from cloudflare-saas-stack.
Perfect!
from cloudflare-saas-stack.
@abaudhuin can you confirm this too?
from cloudflare-saas-stack.
yes, I confirm it's deployed now!
Thanks
from cloudflare-saas-stack.
Related Issues (20)
- Bun? HOT 1
- Cannot read properties of undefined reading "default" error on Windows when running project locally HOT 34
- Some SAAS functionality is missing (e.g. Payments/Stripe, Organization/Multi Tenancy)
- low cost deployment
- how to upload an image? HOT 3
- Deploy to Cloudflare HOT 4
- Error while developing HOT 8
- Issue: Dependency Conflict in Cloudflare Deployment HOT 1
- Issue: D1 not storing authenticates users, empty. HOT 5
- Elaborate on environmental variables? HOT 7
- Issue: `@repo` related packages not found when running `bun install` HOT 1
- Missing Opensource license HOT 2
- Where to create new pages? HOT 2
- Randomly stopping google input
- unable to run drizzle kit commands HOT 4
- Error using D1+Auth.js in CF Starter - [auth][details] TypeError: immutable HOT 7
- Trouble deploying HOT 1
- Internal Server Error at startup HOT 3
- How can I remove turbo repo from my app? HOT 1
- No Migration found - Error on first run HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloudflare-saas-stack.