Hi there!
This is my first time deploying apps on Fly.io.
Currently, I’m in the process of deploying an app that I have been working for the past couple of weeks. However, I’m facing a blocker that I hope the community can help resolve.
Problem
I would like to add a DB connection string as an env var for my app.
Based on the documentation, secrets
are the way to solve this issue.
However, whenever I try to set the secret locally from CLI, I get errors:
Here is the command I run
$ flyctl secrets set DATABASEURL="connection_uri"
The errors that I get:
Error Post "https://api.fly.io/graphql": unexpected EOF
Once, I got the following error message:
Error You ran into an error connecting to the Fly API. If the error persists, keep this request ID to help Fly Support track it down: 01G4JNFFCR7QQGZQ99W3BMNBFA-fra
Can somebody let me know what am I doing wrong and how to proceed?
Cheers