I have a deploy succeeded, but I can’t access my app, here is the log:
2024-05-10T05:07:21.600 app[6e82d375b16118] gru [info] INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
2024-05-10T05:07:21.600 app[6e82d375b16118] gru [info] INFO: Started reloader process [313] using StatReload
2024-05-10T05:07:28.505 app[6e82d375b16118] gru [info] [ 10.007479] Out of memory: Killed process 319 (python) total-vm:187292kB, anon-rss:90892kB, file-rss:0kB, shmem-rss:0kB, UID:0 pgtables:360kB oom_score_adj:0
2024-05-10T05:08:30.034 proxy[5683dd41c01348] gru [error] [PC01] instance refused connection. is your app listening on 0.0.0.0:8000? make sure it is not only listening on 127.0.0.1 (hint: look at your startup logs, servers often print the address they are listening on)
2024-05-10T05:08:30.059 proxy[6e82d375b16118] gru [error] [PC01] instance refused connection. is your app listening on 0.0.0.0:8000? make sure it is not only listening on 127.0.0.1 (hint: look at your startup logs, servers often print the address they are listening on)
My fly.toml is like this:
[build]
dockerfile = 'Dockerfile'
ignorefile = '.dockerignore'
[build.args]
ENVIRONMENT='production'
[[services]]
internal_port = 8000
protocol = "tcp"
[[services.ports]]
handlers = ["http"]
port = "80"
force_https = true
[[services.ports]]
handlers = ["tls", "http"]
port = "443"
[[vm]]
size = 'shared-cpu-1x'
Can anyone help me what am I missing?