mirror of
https://codeberg.org/JasterV/spazio-solazzo.git
synced 2026-04-26 18:20:03 +00:00
chore: configure fly.review.toml
This commit is contained in:
parent
9fd5e89b45
commit
2e8c5b8bd7
3 changed files with 37 additions and 1 deletions
4
.github/workflows/fly-review.yml
vendored
4
.github/workflows/fly-review.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
30
fly.review.toml
Normal 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
|
||||
Loading…
Reference in a new issue