Comments (10)
The migrations run via the start.sh
script:
Line 9 in dbb9b7f
Line 15 in dbb9b7f
So they should be all ready to go for you to run those automatically. If you have a repo I can look at I can help more.
from indie-stack.
It was my fault, I never generated a migration! New to Prisma :)
Quick question while I have you, do you normally do the prisma db push
then prisma migrate dev
workflow? It's but didn't realize it always blows away my local db. (As opposed to just changing the schema then running prisma migrate dev
).
Thanks for the help!
from indie-stack.
Just invited you to the repo, please let me know if there's anything else I can do to make it easier for you to diagnose. This is my first time using Prisma so maybe I'm missing something - but locally everything works.
This is the error I'm seeing:
from indie-stack.
Happy to start a new app from scratch too if that'd be easier!
from indie-stack.
I looked into this a bit and didn't see anything out of order. I suggest you start a thread on the fly support community (give them your app name and they can look into it) or try to change the app name, run through the setup steps again with the new app name, and try to deploy there. It could be that something went wrong on Fly's end (that's the most likely case I think).
FWIW, the Fly community is normally pretty quick to respond to new threads.
Unfortunately, there's nothing actionable on our end here in the stack, so I'm going to close this issue. But if anything comes up that we can do to improve the stack (even a note in the README or something) then let me know. In fact, I'll probably add a note about the fly community right now. Thanks!
from indie-stack.
Glad you got it working! 👏👏
I'm still figuring out my preferred workflow with changing the schema 😅 I typically execute a bunch of commands until I'm happy with the result 🙃 I don't mind blowing away my local db. If there's anything I want sticking around I just update the seed script :)
from indie-stack.
I had the exact same issue as @samselikoff (thanks for posting). Maybe this is my fault, but I only read the Developer Blog tutorial and I skipped the Jokes App tutorial. The Developer Blog tutorial doesn't mention anything about needing to generate migrations. I'm also new to Prisma and I thought that npx prisma db push
was migrating my database.
Looking at the docs again, I now see that the migration process is clearly explained here: https://remix.run/docs/en/v1/tutorials/jokes#deployment . But I never made it that far in the docs – I felt like I had a good enough understanding of the framework from the first tutorial.
My two cents is that it would be helpful to add a warning to the Developer Blog tutorial calling out that npx prisma db push
doesn't actually generate migrations and you'll need to run npx prisma migrate dev
and commit the generated migration file before deploying to Fly.io.
from indie-stack.
Agreed! I merged a PR yesterday that added a note about that to the blog tutorial 😁
from indie-stack.
Awesome, thanks Kent! Remix is awesome by the way. Thanks for the great work.
from indie-stack.
Thank you!
from indie-stack.
Related Issues (20)
- Logout directly by hiting http://localhost:3000/logout should remove the cookie stored in the browser HOT 3
- Collaborator init script is missing HOT 5
- Warning: Expected server HTML to contain a matching <meta> in <head> HOT 5
- Fly Instance runs out of memory on deployment HOT 11
- Failed app run HOT 3
- Missing Environment Variables when Prisma is removed HOT 3
- Env variables undefined in build but fine in dev HOT 1
- pnpm is not preinstalled and causes an error in Cypress HOT 3
- No region defined in the fly deploy command, causes deployment to crash HOT 10
- Remix and Cypress hydration problem HOT 7
- hydration failed,and css file will request twice HOT 1
- npm run dev errors out in windows machines with "Cannot find module '--require/package.json'"
- Error during deployment in Fly.io, Dockerfile needs to give permissons to `start.sh` script HOT 3
- Timeout when Running e2e tests on a fresh installation
- Typecheck fails because it can't find definitions for cypress or @testing-library/cypress HOT 6
- throw new Error(`Failed to kill process ${pid}: ${error}`) after code change HOT 3
- Tailwind SourceMap/EsBuild Issue HOT 4
- Error upon deployment: you must be authenticated
- Cypress custom commands doesn't load HOT 2
- Use `fly launch`/`dockerfile-node` instead of `.dockerignore`, `Dockerfile`, `fly.toml` & `start.sh` HOT 9
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 indie-stack.