Help with DB build/deploy error.

Getting a weird build/deploy error when I try these commands. Haven't had this issue before and can't seem to find any docs/questions about it. Thanks! source here: https://github.com/SoyMilkIsOk/terp-text
GitHub
GitHub - SoyMilkIsOk/terp-text
Contribute to SoyMilkIsOk/terp-text development by creating an account on GitHub.
No description
10 Replies
SoyMilkIsOk
SoyMilkIsOk5mo ago
Databases | Wasp
Entities, Operations and Automatic CRUD together make a high-level interface for working with your app's data. Still, all that data has to live somewhere, so let's see how Wasp deals with databases.
SoyMilkIsOk
SoyMilkIsOk5mo ago
Still stuck unfortunately
MEE6
MEE65mo ago
Wohooo @SoyMilkIsOk, you just became a Waspeteer level 3!
SoyMilkIsOk
SoyMilkIsOk5mo ago
Seemingly fixed this error by running the deploy/build command inline with my local DB env variable found in .wasp/out/server/.env ... command looked like:
DATABASE_URL="<your_database_url>" wasp deploy fly launch <app_name> den
DATABASE_URL="<your_database_url>" wasp deploy fly launch <app_name> den
seems a little hack-y though
miho
miho5mo ago
Hey, if the error doesn't prevent you from deploying, you can safely ignore it. That's a Prisma error while we are building the app for deployment, but it shouldn't matter if you set the env vars on Fly properly.
SoyMilkIsOk
SoyMilkIsOk5mo ago
It wouldnt let me deploy after that error unfortunately, using the URL inline did fix the error. How would I go about setting env vars on Fly?
miho
miho5mo ago
Env Variables | Wasp
Environment variables are used to configure projects based on the context in which they run. This allows them to exhibit different behaviors in different environments, such as development, staging, or production.
miho
miho5mo ago
Deploying Manually | Wasp
We'll cover how to deploy your Wasp app manually to a variety of providers:
miho
miho5mo ago
Here are some useful resources 😊
SoyMilkIsOk
SoyMilkIsOk5mo ago
Thank you very much! I was stuck here (https://wasp-lang.dev/docs/advanced/deployment/cli#flyio) and didnt think to check the manually section
Deploying with the Wasp CLI | Wasp
Wasp CLI can deploy your full-stack application with only a single command.