When I try to attach my database to, an app hangs forever and doesn’t show any output, even with verbose output.
flyctl postgres attach -v -a ccdc-bot cyber-postgres
I’ve given it 5 minutes before canceling it. I’ve tried deleting both the app and the database app and recreating, with no luck.
Does anyone have anything to try so I can connect them?
@shaun It seemed to work now.
The behavior is odd. The application has a required environment variable of DATABASE_URL which wasn’t being set because the attach wouldn’t complete. I added a temporary URL then deployed a healthy version of the app then unset the secret, and it attached fine.