Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bind to public interface in fly tutorial #448

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

CrowdHailer
Copy link
Contributor

No description provided.

@lpil
Copy link
Member

lpil commented Oct 30, 2024

@CrowdHailer
Copy link
Contributor Author

walking through the tutorial as it is did not work for me. When using a fresh gleam new app and a new fly application launched with fly launch.
I wonder if someone else can try following the guide as is and see if they get the same error.

@lpil
Copy link
Member

lpil commented Oct 31, 2024

Could you share your fly.toml please 🙏 Maybe they changed something

@CrowdHailer
Copy link
Contributor Author

# fly.toml app configuration file generated for eyg-backend on 2024-10-30T09:58:12+01:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#

app = 'eyg-backend'
primary_region = 'arn'

[build]

[http_service]
  internal_port = 8080
  force_https = true
  auto_stop_machines = 'stop'
  auto_start_machines = true
  min_machines_running = 0
  processes = ['app']

[[vm]]
  memory = '1gb'
  cpu_kind = 'shared'
  cpus = 1

@lpil
Copy link
Member

lpil commented Nov 15, 2024

Interesting, it's very different to my (mostly) generated config

#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#

app = "gleam-packages"
primary_region = "lhr"
kill_signal = "SIGINT"
kill_timeout = "5s"

[deploy]
# strategy = "canary"
strategy = "rolling"

[experimental]
  auto_rollback = true

[env]
  PRIMARY_REGION = "lhr"
  DATABASE_PATH = "/litefs/packages.sqlite"
  LITEFS_PRIMARY_FILE = "/litefs/.primary"

[[services]]
  protocol = "tcp"
  internal_port = 3001
  processes = ["app"]

  [[services.ports]]
    port = 80
    handlers = ["http"]
    force_https = true

  [[services.ports]]
    port = 443
    handlers = ["tls", "http"]
  [services.concurrency]
    type = "connections"
    hard_limit = 25
    soft_limit = 20

  [[services.tcp_checks]]
    interval = "15s"
    timeout = "2s"
    grace_period = "1s"
    restart_limit = 0

[mounts]
  source = "packages_litefs"
  destination = "/var/lib/litefs"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants