# Fly.io deployment — CUSTOM distribution environment (clienti LIVE). # App name: recesso-custom. The future PUBLIC app is a SEPARATE Fly app # (recesso-public) with its own DB — deploys here never touch it (PLAN §0-ter). # # Secrets are NOT stored here. Set them with `fly secrets set` (never commit): # DATABASE_URL, SHOPIFY_API_KEY, SHOPIFY_API_SECRET, SHOPIFY_APP_URL # (SCOPES can also be set as a secret/env to match shopify.app.toml.) app = "recesso-custom" primary_region = "fra" # Frankfurt (EU data residency) [build] dockerfile = "Dockerfile" [http_service] internal_port = 3000 force_https = true auto_stop_machines = true auto_start_machines = true # TODO(go-live): portare a 1. Con 0 un cold start misurato ha richiesto ~38s, e # l'art. 54-bis pretende una funzione "sempre accessibile" e "facilmente # utilizzabile". Rimandato per scelta (costo: 1 macchina sempre accesa). # Vedi PROTECTED-CUSTOMER-DATA.md §5.2. min_machines_running = 0 [[vm]] size = "shared-cpu-1x" memory = "512mb"