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
1
vote
0 answers
Error: Cannot find module 'express' while deploying on fly.io
when i try to deploy my app on my fly.io server, i get this error :
Error: Cannot find module 'express'
Require stack:
- /workspace/index.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
at Module._load…

Evilink
- 13
- 2
1
vote
0 answers
golang fly.io - dial tcp 127.0.0.1:3306
I have a database hosted on a platform called "hostinger", and the database is a mysql database, and my connection to it is like this: package database
import (
"database/sql"
"fmt"
"log"
"os"
_…

Guilherme Rodrigues
- 321
- 6
1
vote
0 answers
How to deploy on fly.io when package.json contains (private) packages from Github?
I'm trying to deploy my app on fly.io.
The problem I have is that it uses private packages from GitHub Packages registry.
"dependencies": {
"@myscope/mypackage": "^1.0.1",
...
}
I have a .npmrc file that works well when using npm on my…

gordie
- 1,637
- 3
- 21
- 41
1
vote
0 answers
I'm trying to deploy my API in fly.io, but I want to deploy my html/css/scripts too (I used my API in they). How can I make it?
Well, I've made an node express API, and now I'm trying to deploy it on fly.io.
The API deploy is well working, but in same folder of API i got another one with HTML/CSS/js files and I'm trying to deploy it... but that is the problem, I don't know…

jnx
- 11
- 1
1
vote
1 answer
Error while to deploy a node.js app to fly.io
First Time deploying to fly.io
I tried to deploy using fly deploy but it failed so I followed this tutorial https://youtu.be/uoJ0Tv-BFcQ?list=LL&t=18827
I tried to deploy it using the command fly deploy --local-only using Docker locally and I got…

Kareem Abbas
- 97
- 6
1
vote
1 answer
Times Out when trying to Upload Images to AWS S3 Bucket only when App is Deployed on Fly.io
I have a Remix full-stack application that uses an S3 bucket to store and retrieve images. When running the application locally, uploading images to S3 from the application works as expected. However, after deploying the application to Fly.io any…

nsfq94
- 11
- 2
1
vote
0 answers
Objectbox Sync with Fly.io
I would like apply objectbox sync to fly.io. In testing in local, it is fine with the docker command. But in deploying to fly.io, I have no opinion with how to work -model command in fly.io.
docker run --rm -it \
--volume "$(pwd):/data" \
…

Sithu Aung
- 11
- 2
1
vote
1 answer
`fly deploy` fails to deploy Rails 7 app with "Missing encryption key to decrypt file with." when rails master key is present on Fly.io
I'm trying to evaluate Fly.io and deploy an existing Rails 7 app. Following their guide for existing rails apps, fly launch works fine, however fly deploy fails on the assets:precompile step.
Console Ouput:
=> [build 5/6] RUN bundle exec bootsnap…

Phil-6
- 552
- 6
- 16
1
vote
1 answer
Retrieve fly.io secret DATABASE_URL at build time
I'm trying to deploy a NEXTJS app with Prisma on Fly.io. When provisionning my App, I asked for a Fly Postgres but when building the app, I need to run "npx prisma generate" which fails because DATABASE_URL is not passed at build time:
#21 28.33…

Marc.ad
- 47
- 6
1
vote
1 answer
Not able to do Laravel migrations on Planetscale database
I'm a newbie in Laravel, I was trying(testing) to deploy my website on a cloud server. I have already deployed my larvel website on 'Fly.io' with a proper link.
The only thing left to connect was the database, but creating a database on fly.io is…

Vaibhav K. Patil
- 57
- 1
- 4
1
vote
1 answer
CSRF token mismatch error due to Laravel Sanctum not being able to set CSRF cookie in front end app
I have deployed two apps using https://fly.io/;
Laravel (v9) API backend
VueJS front end
Both apps are loading fine in the web browser.
The front end uses Laravel’s Sanctum library for authentication.
In the backend codebase, I have the following…

Mr B
- 3,980
- 9
- 48
- 74
1
vote
1 answer
VSCode Docker Server in Fly.io not working
I am new to Docker and dont know what I am doing wrong.
I trying to host a VSCode Server using Fly.io.
I have cloned this Repo on my Local Windows PC
and I am trying to deploy it to Fly.io.
(The Repo already has a Dockerfile)
This is what I do.
PS…

Collin
- 11
- 2
1
vote
1 answer
Fly.io deployment - secret env variables undefined
I'm pretty new to coding (started in August) and will try to provide all the necessary info needed!
I am working on a blog for a friend in Next.js that has a ghost backend for her to work in (deployment on fly.io worked perfectly fine with a…

rheaGawrbot
- 11
- 4
1
vote
2 answers
Create Dockerfile to deploy NestJS API to fly.io
I created a REST API using NestJS and I want to deploy it to fly.io. fly.io requires me to create a Dockerfile to do so. I don't know much about Dockerfiles but fly.io has a cli tool that creates one for you.
I am not able to deploy my API, however,…

AhmedAbbas
- 53
- 1
- 8
1
vote
0 answers
Flyctl deploy fails setting up Kernel: not syncing: Attempted to kill init! exitcode=0x00000100
I am getting the following errors while deploying an app on fly.io using flyctl deploy.
I have no idea how to solve them or how to troubleshoot them.
Explanation
Explanation
Explanation
fly.toml:
# fly.toml file generated for…

Julius Goddard
- 249
- 1
- 3
- 15