chore: configure fly.review.toml

This commit is contained in:
JasterV 2026-01-14 10:07:53 +01:00
parent 9fd5e89b45
commit 2e8c5b8bd7
3 changed files with 37 additions and 1 deletions

View file

@ -32,3 +32,7 @@ jobs:
- name: Deploy PR app to Fly.io
id: deploy
uses: superfly/fly-pr-review-apps@1.2.0
with:
name: "pr-${{ github.event.pull_request.number }}-jasterv-spazio-solazzo"
image: elixir:1.19 # this is needed otherwise elixir isn't in the PATH.
config: fly.review.toml

View file

@ -54,7 +54,9 @@ else
You can generate one by calling: mix phx.gen.secret
"""
host = System.get_env("PHX_HOST") || "example.com"
host =
System.get_env("PHX_HOST") ||
raise "Missing environment variable `PHX_HOST`!"
config :spazio_solazzo, :dns_cluster_query, System.get_env("DNS_CLUSTER_QUERY")

30
fly.review.toml Normal file
View file

@ -0,0 +1,30 @@
# fly.preview.toml
app = "spazio-solazzo"
primary_region = "ams"
kill_signal = "SIGTERM"
[build]
dockerfile = "Dockerfile"
[env]
PHX_SERVER = "true"
PORT = "8080"
[http_service]
internal_port = 8080
force_https = true
auto_stop_machines = 'stop'
auto_start_machines = true
min_machines_running = 0
processes = ["app"]
[http_service.concurrency]
type = "connections"
soft_limit = 500
hard_limit = 500
[[vm]]
cpu_kind = "shared"
memory = '512mb'
cpus = 1
memory_mb = 512