Choose "fra"?

Hi,

I’m new to fly.io, and I’m trying to deploy an app in Singapore. (I am in south east asia, but I need the app to be deployed in Frankfurt)

However, when I deploy it, it always chooses SIN.

What am I doing wrong?

fly.toml

app = "..."

[build]
  dockerfile = "Dockerfile"

[[machines]]
region = "fra"
cpus = 1
memory_mb = 1024
cpu_kind = "shared"

[http_service]
  internal_port = 8080
  force_https = true
  auto_stop_machines = true
  auto_start_machines = true
  min_machines_running = 0
  processes = ["web"]

[[services.ports]]
  handlers = ["tls", "http"]
  port = 443

[[vm]]
  cpu_kind = "shared"
  cpus = 1
  memory_mb = 1024

[env]
  PORT = "8080"

[[processes]]
  name = "web"
  command = [
    "uvicorn",
    "main:app",
    "--host",
    "0.0.0.0",
    "--port",
    "8080"
  ]

terminal

➜  ... git:(main) ✗ fly launch
An existing fly.toml file was found for app ...
? Would you like to copy its configuration to the new app? Yes
Using build strategies '[the "Dockerfile" dockerfile]'. Remove [build] from fly.toml to force a rescan
Creating app in /Users/martincarlsson/Desktop/GitHub/StarlightAutomation/...
We're about to launch your app on Fly.io. Here's what you're getting:

Organization: Martin Carlsson        (fly launch defaults to the personal org)
Name:         ...          (from your fly.toml)
Region:       Singapore, Singapore   (this is the fastest region for you)
App Machines: shared-cpu-1x, 1GB RAM (from your fly.toml)
Postgres:     <none>                 (not requested)
Redis:        <none>                 (not requested)
Tigris:       <none>                 (not requested)

? Do you want to tweak these settings before proceeding? (y/N) 

i changed the name of the app to …

Hey you can setup primary region like this

app = '...' #app name
primary_region = 'fra' #region
swap_size_mb = 512 #also add swap if you want
1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.