Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions fly.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# fly.toml — Fly.io deployment configuration
# Update the app name to match your registered Fly.io app before running `flyctl deploy`
app = "slack-incident-bot"
primary_region = "sjc"

[build]

[http_service]
internal_port = 8080
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Align Fly internal port with app listen port

internal_port is set to 8080, but this service listens on config.port whose default is 3000 (src/config.rs), and the container is also configured around port 3000 (Dockerfile EXPOSE 3000 and healthcheck on localhost:3000). Because this fly.toml does not set PORT=8080, Fly will proxy to a port the app is not listening on, causing failed health checks and unreachable HTTP endpoints after deployment.

Useful? React with 👍 / 👎.

force_https = true
auto_stop_machines = "stop"
auto_start_machines = true
min_machines_running = 0

[[vm]]
size = "shared-cpu-1x"
Loading