pkmntrade.club/fly.toml

47 lines
900 B
TOML

# fly.toml app configuration file generated for pocket-trade-dev on 2025-02-26T12:02:50-08:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#
app = 'pkmntrade-club'
primary_region = 'lax'
console_command = '/code/manage.py shell'
[build]
dockerfile = 'Dockerfile'
[deploy]
release_command = 'bash deploy.sh'
strategy = 'bluegreen'
[env]
PORT = '8000'
[http_service]
internal_port = 8000
force_https = true
auto_stop_machines = 'suspend'
auto_start_machines = true
min_machines_running = 0
processes = ['app']
[[http_service.checks]]
grace_period = "15s"
interval = "30s"
method = "GET"
timeout = "10s"
path = "/health"
[[vm]]
size = 'shared-cpu-8x'
memory = '2gb'
[[statics]]
guest_path = '/code/static'
url_prefix = '/static/'
[[restart]]
policy = "on-failure"
retries = 10
processes = ["app"]