WaspW
Wasp2y ago
manaphy

Running database migrations on hosted app

Hey everyone! I have my app hosted on Fly.
  • When I try to sign up or log in, it says "Save failed: there was a database error" (see image 1).
  • The Fly monitoring logs state the issue quite clearly: "🐝 This error can happen if you did't run the database migrations" (see image 2).
How do I go about running database migrations before I deploy a new release? I was looking at the Fly docs https://fly.io/docs/reference/configuration/#the-deploy-section, which say to add a release_command to the .toml file.
Screenshot_2024-03-12_212837.png
Screenshot_2024-03-12_213008.png
Fly
Documentation and guides from the team at Fly.io.
Was this page helpful?