-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfly.toml
More file actions
27 lines (22 loc) · 732 Bytes
/
fly.toml
File metadata and controls
27 lines (22 loc) · 732 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
app = 'prodev-ecommerce-backend'
primary_region = 'cdg'
[build]
dockerfile = 'infra/docker/Dockerfile'
[processes]
web = "gunicorn src.core.wsgi:application --bind 0.0.0.0:8000 --workers 3"
worker = "celery -A src.core.celery worker --loglevel=info"
beat = "celery -A src.core.celery beat -l info --scheduler django_celery_beat.schedulers:DatabaseScheduler"
[deploy]
# Simplified: Files are already in the image, just run migrations
release_command = "python src/manage.py migrate --noinput"
[http_service]
internal_port = 8000
force_https = true
auto_stop_machines = true
auto_start_machines = true
min_machines_running = 0
processes = ['web']
[[vm]]
cpu_kind = 'shared'
cpus = 1
memory_mb = 512