# 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 # Una macchina sempre calda. Con 0, un cold start misurato ha richiesto ~38s: # l'art. 54-bis pretende una funzione "sempre accessibile" e "facilmente # utilizzabile", e 38 secondi dopo il clic sono un ostacolo. Costo: 1 macchina. min_machines_running = 1 [[vm]] size = "shared-cpu-1x" memory = "512mb"