dsifry
dsifry
WWasp-lang
Created by dsifry on 7/27/2023 in #🙋questions
Using Wasp with AWS RDS Postgresql?
Hi! I'm pretty new to wasp, and I've been playing with the saas-template, and got it running on localhost on my Mac using the default install. I'm used to using AWS for production deploys, and so I tried deploying wasp onto a server that connects to an AWS RDS instance running postgresql directly, but it appears that the wasp instance isn't reading from the .env-server file to load the DATABASE_URL even though I have uncommented it and filled it with the proper postgres:// url to connect to my db server. Any ideas on how to troubleshoot this? This is the output of wasp db migrate-dev: $ wasp db migrate-dev 🐝 --- Compiling wasp project... -------------------------------------------------- 🐝 --- Setting up database... ----------------------------------------------------- [Db!] Error: P1001 [Db!]
[Db!] Can't reach database server at localhost:5432 [Db!]
[Db!] Please make sure your database server is running at localhost:5432. [Db!]
✅ --- Database successfully set up. ---------------------------------------------- ✅ --- Your wasp project has successfully compiled. ------------------------------- ❌ --- [Error] Can not connect to database: --------------------------------------- The database needs to be running in order to execute this command. You can easily start a managed dev database with wasp start db.
17 replies