-
Notifications
You must be signed in to change notification settings - Fork 0
/
fly.toml
49 lines (40 loc) · 1.33 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# fly.toml app configuration file generated for vc-portfolio on 2024-05-03T16:10:29+01:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#
app = 'vc-portfolio'
primary_region = 'lhr'
# console_command = '/code/manage.py shell'
[build]
build-target = "production"
[experimental]
auto_rollback = true
[env]
PORT = "8000"
[http_service]
internal_port = 8000
force_https = true
auto_stop_machines = true
auto_start_machines = true
min_machines_running = 0
processes = ['app']
# Mount sqlite database and media files in a volume so we have persistance across deploys.
# Created using `fly volumes create vc_portfolio_volume -r lhr`
[[mounts]]
source = "vc_portfolio_volume"
destination = "/data"
processes = ["app"]
[[statics]]
# Uses destination from the mount above.
# Make sure to set MEDIA_DIR environment variable to be same as the guest_path.
# Set MEDIA_DIR to '/app/data/media' in environment variables.
guest_path = "/data/media"
url_prefix = "/media/"
[[vm]]
memory = '1gb'
cpu_kind = 'shared'
cpus = 1
# Release command release_commands don’t have access to volumes, since they’re ephermereal and
# can’t attach the same volume as the main machine, hence the following won't work.
# [deploy]
# release_command = "python manage.py migrate --noinput"