Hi fam,
I’ve deployed my django app with celery + flower, I can see that django and celery worker work but I can’t view flower somehow. I’ve pasted my fly.tml
is below. Can someone help me understand what I’m doing wrong with the config?
I can see that the django app is deployed to https://aininjas.fly.dev/ , but if i want to set a subdomain name for flower, like https://flower.aininjas.fly.dev/
, how can i do that?
Mucho gracias!
app = "aininjas"
primary_region = "mia"
[build]
dockerfile = "compose/production/django/Dockerfile"
[deploy]
release_command = "python /app/manage.py migrate"
[env]
DJANGO_DEBUG = "0"
PORT = "5000"
RUNTIME_ENV = "PROD"
kill_signal = "SIGINT"
kill_timeout = "5"
[processes]
django = "/start"
celeryworker = "/start-celeryworker"
flower = "/start-flower"
celerbeat = "/start-celerybeat"
[[services]]
protocol = "tcp"
internal_port = 5000
processes = ["django"]
[[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
[[services]]
http_checks = []
internal_port = 5555
processes = ["flower"]
protocol = "tcp"
script_checks = []
[services.concurrency]
hard_limit = 25
soft_limit = 20
type = "connections"
[[services.ports]]
handlers = ["tls", "http"]
port = 5555
[[statics]]
guest_path = "/app/staticfiles" # <-- Updated!
url_prefix = "/static"