How to connect to production database
Hi, How can i connect to the production postgresql database deployed to fly.io?
Is it that I have to forward/proxy the database first and then use prisma studio? (wasp db studio?)
Or can I get the database_url and connect directly to postgresadmin? (Which i did using this command flyctl postgres attach --app <your-app-name>, getting getaddrinfo error)
38 Replies
Hi @ApexFossa45. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
To connect to your production PostgreSQL database deployed on Fly.io, you have a couple of options. Here's how you can do it:
1. Using a proxy/tunnel:
This is the recommended method. You can use the Fly CLI to create a tunnel to your production database:
After running this command, leave the terminal tab open to keep the tunnel active. Then, in a new terminal tab, you can use
wasp db studio
to connect to the database. Make sure you've set the correct DATABASE_URL
in your .env.server
file first.
Github Issue: Update the database docs on seeding the production DB on Fly provides more detailed steps on this process.
2. Direct connection:
While it's possible to connect directly using tools like pgAdmin, it's generally not recommended for security reasons. The flyctl postgres attach
command you tried should work, but the "getaddrinfo error" suggests there might be a network or DNS issue.
For a direct connection, you'd need to get the correct database credentials. You can find these by running:
This will give you the database password. The username is typically "postgres".
Discord support thread: How to interact with database in prisma studio after deployment? provides additional context on these methods.
Remember to be cautious when connecting to your production database, as any changes made will directly affect your live application. It's always a good practice to create backups before making any significant changes.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
Sorry @ApexFossa45, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist:
Perhaps try again in 15mins?@kapa.ai thanks, when trying to proxy the database to localhost (option 1), it says: nico@Narev001:~/Projects/aicreationscentral$ wasp start db
ā --- [Error] You are using custom database already: -----------------------------
Wasp has detected that you have defined DATABASE_URL env var in your .env.server file.
To have Wasp run the dev database for you, make sure you remove that env var first.
Let me check the knowledge base for you again. One moment! :books:
Wohooo @ApexFossa45, you just became a Waspeteer level 3!
----------------------
Based on the error message you're seeing, it appears that you have already defined a
DATABASE_URL
environment variable in your .env.server
file. This is causing a conflict with Wasp's attempt to start a development database. Here's how you can resolve this issue:
1. First, you need to remove or comment out the DATABASE_URL
from your .env.server
file. This environment variable is likely pointing to your production database, which is why Wasp is detecting a custom database configuration.
2. After removing the DATABASE_URL
, you should be able to run wasp start db
successfully. This command will start a local development database for you.
3. Once you have the local database running, you can proceed with creating the proxy to your production database as described earlier.
It's important to note that you should be careful not to accidentally use your production database URL for local development. As mentioned in the Wasp documentation on connecting to a database:
Just don't forget to remove the DATABASE_URL with production database url from .env.server if you put it there, so you don't accidentally do something you didn't want to on the production database later.After making these changes, you should be able to use the proxy method to connect to your production database safely. Remember to keep your production database URL secure and only use it when absolutely necessary for production-related tasks. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @ApexFossa45, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
@kapa.ai thanks, i can see the database within pgadmin tool, the tables are in my database app on fly.io, but they are empty. Additionally, i cannot start wasp db studio, as it says port 5432 is already in use. any help please?
Let me check the knowledge base for you again. One moment! :books:
----------------------
Based on the information you've provided, it seems you're facing a couple of issues. Let's address them one by one:
1. Empty tables in your Fly.io database:
If you can see the tables but they're empty, it's possible that your migrations have run successfully, but no data has been seeded or inserted yet. You might need to run your seed script or manually insert data into your production database.
2. Port 5432 already in use when trying to run
wasp db studio
:
This error suggests that something else is already using the default PostgreSQL port (5432). This could be because:
- You still have the Fly.io proxy running on port 5432
- You have a local PostgreSQL instance running
- Another application is using this port
To resolve these issues, you can try the following:
1. For the empty tables:
- If you have a seed script, you can try running it on your production database. Be cautious when doing this, as it will affect your live data.
- You may need to manually insert data if you don't have a seed script.
2. For the port conflict:
- First, make sure you've closed any existing proxy connections to your Fly.io database.
- If you're still getting the error, you can try using a different port for your proxy. For example:
This will map your local port 15432 to the remote 5432 port.
- Then, update your DATABASE_URL
in .env.server
to use this new port:
- Now try running wasp db studio
again.
Remember to be careful when working with your production database. As mentioned in the Github issue about seeding production databases:
Now you are connected to the production database, so be careful with what commands you execute!If you're still having trouble, you might want to check if there's anything else running on port 5432 on your local machine. On Linux, you can use a command like
sudo lsof -i :5432
to see what's using that port.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
Sorry @ApexFossa45, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist:
Perhaps try again in 15mins?@kapa.ai thanks! but it doesn't let me. it says 'Wasp has detected that you have defined DATABASE_URL env var in your .env.server file. To have Wasp run the dev database for you, make sure you remove that env var first." - which I need to keep to proxy to that database, so I am confused?
Let me check the knowledge base for you again. One moment! :books:
----------------------
I understand your confusion. It seems like you're caught in a situation where Wasp is detecting a conflict between its development database setup and your attempt to connect to the production database. Let's clarify this situation:
1. The error message you're seeing is because Wasp is trying to start its own development database, but it's detecting that you have a
DATABASE_URL
set in your .env.server
file.
2. You're correct that you need to keep the DATABASE_URL
to proxy to your production database.
To resolve this, you need to understand that there are two different scenarios here:
1. Local development with Wasp's development database
2. Connecting to your production database for inspection or maintenance
For scenario 1, you would indeed need to remove the DATABASE_URL
from .env.server
to let Wasp start its own development database.
For scenario 2 (which is what you're trying to do), you don't need to use wasp start db
or wasp db studio
. Instead, you should:
1. Keep your DATABASE_URL
in .env.server
pointing to your production database (via the proxy).
2. Use the Fly.io proxy as you were doing before:
3. Instead of using wasp db studio
, you can use Prisma Studio directly:
This approach is mentioned in the Discord support thread, where a community member suggests:
However, if wasp db studio
doesn't work due to the conflict, using npx prisma studio
directly should achieve the same result.
Remember to be cautious when connecting to your production database, and always ensure you're not accidentally making unwanted changes to your live data.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
Sorry @ApexFossa45, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist:
Perhaps try again in 15mins?@kapa.ai thanks, it's not working. When I run wasp db studio, it says wasp start db must be called to run the database, but it cannot connect due to the url. even when using npx prisma studio command, it says environment variable not found DATABASE_URL. although i do see it within the .wasp/out/server/.env file (the production url)
Let me check the knowledge base for you again. One moment! :books:
----------------------
I understand your frustration. It seems like you're encountering multiple issues while trying to connect to your production database. Let's break this down and try to find a solution:
1. The
wasp db studio
command is designed to work with the local development database, which is why it's asking you to run wasp start db
first. However, as we discussed earlier, this conflicts with your production database URL.
2. The npx prisma studio
command is not finding the DATABASE_URL
environment variable. This is likely because the environment variable is not being loaded from the .wasp/out/server/.env
file automatically.
To resolve this, you can try the following:
1. First, make sure you're in your project's root directory.
2. Instead of running npx prisma studio
directly, try this command:
This command does a few things:
- It reads the DATABASE_URL
from your .wasp/out/server/.env
file
- It sets this as an environment variable for the current command
- It runs Prisma Studio with the correct schema location
3. If the above command doesn't work, you can try setting the environment variable manually before running Prisma Studio:
Remember, as mentioned in the Github issue about connecting to databases, you need to ensure that you have the correct database credentials, including the username and password, in your DATABASE_URL
.
If you're still having trouble, it might be helpful to double-check your DATABASE_URL
in the .wasp/out/server/.env
file to ensure it's correctly formatted and includes all necessary information.
Also, keep in mind the warning from the Discord support thread:
Just don't forget to remove the DATABASE_URL with production database url from .env.server if you put it there, so you don't accidentally do something you didn't want to on the production database laterBe cautious when working with your production database, and always ensure you're aware of which database you're connected to. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @ApexFossa45, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
@kapa.ai thanks, i did try updating the url to have postgresql:// to start with, and the format: postgresql://[username:password@]host[:port]/database. i am getting this error within prisma studio: Message: Error in Prisma Client request:
Invalid
prisma.file.findMany()
invocation:
error: Error validating datasource db
: the URL must start with the protocol postgresql://
or postgres://
.
--> schema.prisma:4
|
3 | provider = "postgresql"
4 | url = env("DATABASE_URL")
|
Validation Error Count: 1Let me check the knowledge base for you again. One moment! :books:
----------------------
Based on the error message you're seeing, it appears that there's still an issue with your
DATABASE_URL
configuration. Let's try to troubleshoot this:
1. The error suggests that your DATABASE_URL
is not starting with the correct protocol. It should start with either postgresql://
or postgres://
.
2. You mentioned that you updated the URL to start with postgresql://
, which is correct. However, the error persists, indicating that the environment variable might not be properly set or read.
Here are a few steps to try:
1. Double-check your .wasp/out/server/.env
file. Make sure the DATABASE_URL
is correctly formatted. It should look something like this:
2. Ensure there are no extra spaces or quotes around the URL.
3. Try setting the environment variable manually before running Prisma Studio:
Replace username
, password
, host
, port
, and database
with your actual values.
4. If you're using the Fly.io proxy, make sure your DATABASE_URL
reflects the local proxy settings. It should look something like this:
Remember to replace your_password
and your_database
with the correct values.
5. If you're still having issues, you can try to validate your Prisma schema directly:
This might give you more detailed information about what's wrong with your configuration.
If none of these steps resolve the issue, it's possible that there might be a problem with how Wasp is generating or reading the Prisma schema. In this case, you might want to check the contents of your .wasp/out/db/schema.prisma
file to ensure it's correctly referencing the DATABASE_URL
environment variable.
Remember, as mentioned in the Github issue about Prisma workflows in production, it's crucial to be careful when connecting to your production database and to ensure you're using the correct credentials.
If you continue to face issues, you might want to consider reaching out to the Wasp community on their Discord channel for more specific help, as they might be able to provide more tailored assistance based on your exact setup.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
Sorry @ApexFossa45, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist:
Perhaps try again in 15mins?@kapa.ai got it thanks. what would be the password and database if i'm using the proxy? would it be the same as the production database from fly.io?
Let me check the knowledge base for you again. One moment! :books:
----------------------
Yes, when you're using the proxy to connect to your Fly.io database, you would use the same credentials as your production database. The proxy essentially creates a secure tunnel from your local machine to the remote database, allowing you to connect as if it were running locally.
Here's how you can find and use the correct credentials:
1. To get the database password, you can run:
This will give you the database password for your Fly.io PostgreSQL instance.
2. The database name typically follows the convention of
<your_app_name>_db
. You can confirm this by running:
Then, once connected, type \l
to list all databases.
3. The username is typically "postgres" for Fly.io PostgreSQL instances.
So, your DATABASE_URL
when using the proxy would look something like this:
Replace <password>
with the password you obtained from step 1, and <db_name>
with the database name you confirmed in step 2.
This information is consistent with what's described in the Github issue about seeding production databases on Fly.
Remember to be cautious when connecting to your production database. As mentioned in the same Github issue:
Now you are connected to the production database, so be careful with what commands you execute!It's always a good practice to double-check your actions when working with production data. Discord support thread: Frontend React Template integration into OpenSaas template ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @ApexFossa45, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
@kapa.ai thanks, i think it connected, but the tables are empty/non existant. it can't find File table, nor Session. why?
Let me check the knowledge base for you again. One moment! :books:
----------------------
Based on the information you've provided, it seems you've successfully connected to your production database, but you're encountering issues with missing tables. This could be due to a few reasons:
1. Migrations haven't been run on the production database:
If you've recently deployed your app or made changes to your schema, the migrations might not have been applied to your production database.
2. The database might be empty:
If this is a new deployment, or if you haven't added any data yet, the tables might exist but be empty.
3. Schema mismatch:
There might be a mismatch between your local schema and the production schema.
To address these issues, you can try the following:
1. Run migrations on your production database:
You can try running migrations manually on your production database. However, be cautious when doing this as it can affect your live data. According to the Github issue about Prisma workflows in production, you can SSH into your Fly.io app and run the migrations there:
2. Check if the tables exist:
While connected to your database (either through pgAdmin or psql), you can list all tables in your database with this SQL command:
This will show you all tables in your database. If you see tables listed but they're empty, it means the migrations have run but no data has been added.
3. Verify your schema:
Make sure your local schema matches what you expect to see in production. You can check your Prisma schema file (usually located at
.wasp/out/db/schema.prisma
) to see what tables should exist.
4. Seed your database:
If the tables exist but are empty, you might need to seed your database with initial data. The process for this depends on how you've set up your seed scripts.
Remember, as mentioned in the Github issue about seeding production databases on Fly, be very careful when making changes to your production database:
Now you are connected to the production database, so be careful with what commands you execute!If you continue to face issues after trying these steps, it might be helpful to review your deployment process and ensure that all necessary steps (including migrations) are being run when you deploy to Fly.io. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @ApexFossa45, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
@kapa.ai got it, where is the data in production fly.io database coming from then? if i do ssh then npx prisma migrate deploy, will that overwrite existing data?
Let me check the knowledge base for you again. One moment! :books:
----------------------
Based on your question, it seems you're concerned about the source of data in your production Fly.io database and the potential impact of running migrations. Let's address these concerns:
1. Source of data in production:
The data in your production Fly.io database typically comes from:
- User interactions with your live application
- Any seeding scripts you might have run
- Manual data insertions (if any)
If you're seeing data that you didn't expect, it's possible that your application has been running and collecting data, or that a seeding script was executed during deployment.
2. Impact of running
npx prisma migrate deploy
:
Running npx prisma migrate deploy
will not overwrite existing data by default. According to the Prisma documentation, this command:
- Applies all pending migrations
- Creates the _prisma_migrations
table if it doesn't exist
- Records the applied migrations in the _prisma_migrations
table
However, there are some important points to consider:
- If your new migrations include changes like dropping columns or tables, that data would be lost.
- If you're adding new required fields to existing tables, the migration might fail if there's existing data that doesn't have values for these new fields.
As mentioned in the Github issue about running Prisma migrate deploy:
migrate deploy
should generally be part of an automated CI/CD pipeline, and we do not recommend running this command locally to deploy changes to a production database
If you need to run migrations manually, it's crucial to:
1. Backup your database before running migrations
2. Thoroughly test the migrations on a staging environment that mirrors your production setup
Remember, when working with production databases, always exercise caution. As noted in the Github issue about seeding production databases:
Now you are connected to the production database, so be careful with what commands you execute!If you're unsure about the state of your database or the potential impact of migrations, it might be best to consult with your team or reach out to the Wasp community for more specific guidance based on your exact setup and requirements. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @ApexFossa45, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
@kapa.ai got it thanks. is there a command, way that i can backup data from my fly.io instance?
Let me check the knowledge base for you again. One moment! :books:
----------------------
Yes, there are ways to backup data from your Fly.io PostgreSQL instance. Fly.io provides a few methods to create backups of your database. Here's how you can do it:
1. Using the Fly.io CLI:
You can use the
fly postgres backup
command to create a backup of your database. Here's the basic syntax:
This command will create a backup and provide you with a URL to download it. The backup will be in the form of a SQL dump.
2. Scheduled backups:
Fly.io also offers scheduled backups for PostgreSQL databases. You can set this up using the following command:
This will configure daily backups for your database.
3. Manual pg_dump:
If you prefer more control over the backup process, you can use pg_dump
manually. First, create a proxy to your database:
Then, in another terminal, run:
You'll be prompted for the password, which you can get using the method described in previous answers.
Remember, as mentioned in the Github issue about seeding production databases on Fly, be cautious when connecting to your production database:
Now you are connected to the production database, so be careful with what commands you execute!It's always a good practice to regularly backup your production data, especially before making any significant changes or running migrations. For more detailed information about managing PostgreSQL on Fly.io, including backups, you might want to check the official Fly.io documentation. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @ApexFossa45, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
Hey @ApexFossa45, need human help here or is it under control? š
Hey @Filip, yes please. I need to understand why, when i proxy the database, and then try to connect to it from pgAdmin, i cannot see the data? although it is clearly visible in production server. what needs to be done? The backup doesn't load either for some reason š¤·āāļø
Hey @ApexFossa45,
If the data is in the production database and the app can use it, then the issue is somewhere outside of Wasp and the database, probably with how you're connecting using pgAdmin, possibly (but unlikely with the fly proxying service). Make sure you have the correct database, look into the fly docs etc.
Unfortunately can't say much more, but am happy to help you out if you get stuck trying to figure it out.
Hi!
You should have got database URL from fly
NOTE MAKE SURE YOUR SCHEMA IS THE SAME AS IN PROD!!!!
run this in 1 terminal in the root folder of your project
flyctl proxy 5432 -a YOURAPP-db
Terminal 2 in the root folder of your project
export DATABASE_URL="postgres://postgres:YOURGENERATEDPASSOERD@localhost:5432/YOURAPP_server"
npx prisma studio
If you want to go back to your localdata stop proxying, make a new terminal run
unset $DATABASE_URL
and you should be able to run wasp db studio or whatever
@ wasp team (too scared to actually hyperlink!) I am thinking big and going to sell my platform one day, I think this a super insecure hack or? or is this normal that a person in background can see all data? I suppose we need to encrypt our data someday right? I will ask cursor about it, if you all don't have any solid ideas!
You can do this in dbbeaver but the UI makes me cry, beekeeper is also ok, but still big oof and trying to find the related UserMetrics and so aren't so fun, npx prisma runs it via native prisma so you can edit things easier
Thanks for jumping in!
WRT your question about encryption... Can you please open a new thread and describe exactly what worries you, and we'll take care of it there (to maintain one question per thread) š
Hey! Thank you! That worked. I did the proxy command, and export datababase_url (on 2 terminals). I had to make sure I did export DATABASE_URL="postgres://postgres:YOURGENERATEDPASSOERD@localhost:5432/APPNAME_server", not ...localhost:5432/APPNAME_db which I did before. after that I ran npx prisma studio, and wasp db studio, and it worked. Very close to finding the solution! The thing I see now is no data in my production database as shown. Maybe this is something the @Wasp Team can help me with?
Uhm, if it authenticates and doesn't give you an error quickly, that means you're in!
Sorry to ask, but are you sure you have any data in this table? check users and so?
No worries, this is not a wasp question, it's a postgres/data privacy question! I'll tackle it another day
Thanks! And yea, I do have data in production (see img) but for some reason it's not displaying that data. I even tried re-building the entire app with the migrations and re-deploying it to production, and then doing the proxy again, but i still cannot see the data which is odd...
tbh, i might just give up for the moment and use something like Adminjs or openapi/swagger to view my data: https://adminjs.co/ š¤·āāļø . I didn't expect prod connection to be so difficult, i'll have to come back to it later though for sure (appreciate the help though!)
Hey sorry you're getting discouraged, feel free to DM me! actually with those commands I sent it's pretty straightforward. Adminjs looks good, but already smells a bit expensive lol
got it thanks! I think it's a migration issue, there are columns that are not noticed in production like in dev: I saw your incident (thank you). I'm now wondering if there is a way i can force a migration to prod?
@kapa.ai Hi kappa, is there a way to force a migration from dev into the production database? It's possible there is a mismatch based on what I see. I'm seeing if running something like npx prisma migrate deploy, with the database_url pointing to prod would work?
Let me check the knowledge base for you again. One moment! :books:
----------------------
Yes, you can force a migration from your development schema to your production database using
npx prisma migrate deploy
. However, it's important to approach this with caution, especially when dealing with a production database. Here's how you can do it:
1. First, ensure your DATABASE_URL
is pointing to your production database. If you're using Fly.io, you might need to set up a proxy as discussed earlier:
2. Then, in your project directory, you can run:
Replace <password>
and <db_name>
with your actual production database credentials.
This command will apply any pending migrations to your production database. As mentioned in the Github issue about running Prisma migrate deploy:
migrate deploy
should generally be part of an automated CI/CD pipeline, and we do not recommend running this command locally to deploy changes to a production database
However, if you need to do this manually, please keep these important points in mind:
1. Always backup your production database before running migrations. You can use the Fly.io backup command we discussed earlier:
2. Test the migrations on a staging environment that mirrors your production setup before applying them to production.
3. Be aware that if your new migrations include changes like dropping columns or tables, that data would be lost.
4. If you're adding new required fields to existing tables, the migration might fail if there's existing data that doesn't have values for these new fields.
Remember, as emphasized in the Github issue about seeding production databases:
Now you are connected to the production database, so be careful with what commands you execute!If you're unsure about the potential impact of these migrations on your production data, it might be best to consult with your team or reach out to the Wasp community for more specific guidance based on your exact setup and requirements. Link title Link title ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @ApexFossa45, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
Interesting, I see the correct schema, but no data, within the proxied database at export DATABASE_URL="postgres://postgres:MYPASSWORD@localhost:5432/MYAPP_database" but not export DATABASE_URL="postgres://postgres:MYPASSWORD@localhost:5432/MYAPP_server". Even after running the migrations it worked. I wonder if something is not letting me see the data? @kapa.ai
Let me check the knowledge base for you again. One moment! :books:
Wohooo @ApexFossa45, you just became a Waspeteer level 4!
----------------------
Based on your observation, it seems you're able to see the correct schema but no data in one database, while another database doesn't show the expected schema. Let's break this down:
1. The database
MYAPP_database
shows the correct schema but no data.
2. The database MYAPP_server
doesn't show the expected schema.
This situation suggests a few possibilities:
1. Data Location: It's possible that your application is actually using the MYAPP_server
database, which is why you're not seeing data in MYAPP_database
. The correct schema in MYAPP_database
might be a result of running migrations, but it may not be the database your app is actually using.
2. Connection Issues: There might be a connection issue preventing you from seeing the data, even though it exists.
3. Data Visibility: Depending on how you're viewing the data, there might be settings or permissions preventing you from seeing it.
To troubleshoot this:
1. Double-check your application's configuration to ensure it's using the correct database URL.
2. Try connecting to both databases using a tool like psql
or pgAdmin to verify the contents.
3. Run a simple query to check for data. For example:
Replace "User" with a table name you expect to have data.
4. Check the permissions on the database to ensure your user has the necessary rights to view the data.
5. Verify that the migrations have been applied to the correct database. You can check the _prisma_migrations
table in each database:
Remember, as mentioned in the Github issue about seeding production databases on Fly, be cautious when interacting with your production database:
Now you are connected to the production database, so be careful with what commands you execute!If you continue to face issues, it might be helpful to review your deployment process and database configuration to ensure everything is set up correctly. If you're unsure, consider reaching out to the Wasp community or Fly.io support for more specific assistance with your setup. Link title ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @ApexFossa45, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?