Fly.io is a global application distribution platform. Fly.io runs code in Firecracker microVMs in edge locations around the world.
Questions tagged [fly]
85 questions
0
votes
0 answers
I need to deploy a multipart dockerized application to fly.io
I have a dockerized app that has 3 levels, a frontend with React, a backend with Django/Python, and a database with postgres.
So, in the root directory there’s a docker-compose.yml file instead of a simple Dockerfile, the frontend service has its…

Rafael
- 2,413
- 4
- 32
- 54
0
votes
1 answer
Connecting Postgres and Node App with fly.io using knex.js
Has anyone tried deploying postgres and node app with fly.io using knex?
I am trying to figure out what the connection string would be:
knex({ client: "pg", connection: { host: process.env.DATABASE_URL, }, });
What would be the connection string be?

Prathmesh
- 11
- 4
0
votes
1 answer
Rails and Fly.io - tailwind.css blink
I have followed the default Rails tutorial on the Fly.io website : https://fly.io/docs/rails/getting-started/
It works well but when you reload the page, the css "blink" : https://rails-demo.fly.dev/fly/index
When I open the web console, JS and CSS…

Louis Bertin
- 552
- 2
- 12
0
votes
0 answers
Could not add env variables when I deploy nextjs app onto fly.io
I am trying to deploy nextjs app on fly.io. I could not add env variables on docker file & fly.toml.
[env]
API = "https://api-url"
I tried to add like that in fly.toml.
API URL is undefined
hope someone can share experiences and help me out if…

Yewin
- 160
- 1
- 7
0
votes
0 answers
Error using Product.reindex with OpenSearch and Elasticsearch
I'm currently working on a project where I'm using the Product.reindex method in Ruby on Rails with OpenSearch and Elasticsearch. However, I'm encountering an error that I'm having trouble resolving. The error message I'm receiving…

Samald
- 1
- 2
0
votes
0 answers
Fly.io flyctl deploy, overwrites my production database & replaces with the local one
I am using Fly.io to host my website using Django. I use the command fly deploy & every time it replaces the database with the existing local database.
How do I deploy my website without it replacing the existing production database?

Hash Line
- 35
- 7
0
votes
1 answer
CORS error while trying to register on my app
I'm new to the world of node.js and backend programmation, and i have a CORS error.
i already tried a lot of solutions, but nothing worked for me.
I'm using fly.io as server.
Acess to fetch at 'https:///register' from origin…

Evilink
- 13
- 2
0
votes
1 answer
Rails do not allow me to delete an article though I've already added 'dependent: destroy' to the 'comment model'
I'm new to Ruby on Rails and I'm trying to build a simple web application.
I have an 'article' model and a 'comment' model
The 'article' can have many 'comments'. I deployed my web on fly.io. When I create an article and add comment to that…

Thảo Nguyễn
- 15
- 4
0
votes
0 answers
random 502 bad gateway errors with Strapi endpoints - app deployed on Fly.io + postgres database on Supabase
I've managed deploying my Strapi app on Fly.io, connected to a PostgreSQL database on Supabase.
I've followed this Strapi guide, but it seems a little bit outdated so I made some custom edits on my setup.
It... sometimes work, but I regulary get 502…

gordie
- 1,637
- 3
- 21
- 41
0
votes
0 answers
Deploying Django project to fly.io
I'm trying to deploy my Django project on fly.io, but I'm encountering an issue where it's creating two machines instead of the desired one. Here's the error message I'm getting:
Running nameless-paper-520 release_command: python hw10/manage.py…

Sergio
- 313
- 5
- 18
0
votes
0 answers
Strapi (deployed on fly.io)) : how could I host my uploads on my own hosting?
I've managed deploying Strapi on fly.io (hobby plan).
I would like to know if it would be possible to host the medias (uploads, etc) on my own hosting (Planethoster).
Can anyone explain if it is possible and how to achieve it ?
Thanks !

gordie
- 1,637
- 3
- 21
- 41
0
votes
0 answers
javascript - minio client with ipv6
I want to upload an image to a Minio server, both the app and the server in the same IPv6 Network. Fetching the images with fetch() works awesome, but when I want to connect with Minio.Client, the invalid endpoint error throws.
This is my…

Saul Chavez Sanchez
- 45
- 5
0
votes
0 answers
Accessing environment secrets from cron-initiated shell script
I have an app that uses cron to kick off shell scripts that initiate a python script. I also use fly.io's secrets manager. The python script accesses the secrets in the environment. This all works fine if I call the python script directly, or kick…

hookedonwinter
- 12,436
- 19
- 61
- 74
0
votes
1 answer
How can I fix the 'sh' term not recognized error when installing flyctl on PowerShell?
I have been trying to install flyctl on my Windows 10 system with the command mentioned on the website:
curl -L https://fly.io/install.sh | sh
when I run the above command, I get the following error message:
sh : The term 'sh' is not recognized as…

Aly Ahmed Aly
- 1
- 4
0
votes
0 answers
to many connection for role error in spring simple crud api on fly.io
im deploying a simple spring-boot crud api on fly.io, but the server keeps reloading and logging the postgreSQL error "too many connections for role #myusername" when i look over the monitor.
My app doesn't close connexion to database apparently
Im…

Nicolas Boudier
- 11
- 3