-
Notifications
You must be signed in to change notification settings - Fork 0
/
fly.toml
33 lines (27 loc) · 929 Bytes
/
fly.toml
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
28
29
30
31
32
33
app = 'thebook'
primary_region = 'gru'
console_command = '/code/manage.py shell'
[build]
[deploy]
release_command = 'python manage.py migrate --noinput'
[env]
ALLOWED_HOSTS = 'thebook.lhc.net.br,thebook.fly.dev'
CSRF_TRUSTED_ORIGINS = 'https://thebook.lhc.net.br,https://thebook.fly.dev'
DEBUG = '0'
PORT = '8000'
STORAGES = '{"default": {"BACKEND": "storages.backends.s3.S3Storage", "OPTIONS": {"bucket_name": "lhc-bookkeeping"}}, "staticfiles": {"BACKEND": "storages.backends.s3.S3Storage", "OPTIONS": {"bucket_name": "lhc-thebook-static"}}}'
STATIC_URL = 'https://lhc-thebook-static.s3.us-east-005.backblazeb2.com/'
[http_service]
internal_port = 8000
force_https = true
auto_stop_machines = true
auto_start_machines = true
min_machines_running = 1
processes = ['app']
[[vm]]
memory = '1gb'
cpu_kind = 'shared'
cpus = 1
[[statics]]
guest_path = '/code/static'
url_prefix = '/static/'