blonk is a radar for your web, where you follow vibes for cool blips on the radar

add fly.io deployment configuration

Fly Dev 5e3cfceb e3a6aac4

Changed files
+69 -2
config
+6 -2
config/dev.exs
··· 2 2 3 3 # Configure your database 4 4 config :elixir_blonk, ElixirBlonk.Repo, 5 - database: "blonk.db", 5 + username: "postgres", 6 + password: "postgres", 7 + hostname: "localhost", 8 + database: "elixir_blonk_dev", 6 9 stacktrace: true, 7 - show_sensitive_data_on_connection_error: true 10 + show_sensitive_data_on_connection_error: true, 11 + pool_size: 10 8 12 9 13 # For development, we disable any cache and enable 10 14 # debugging and code reloading.
+63
fly.toml
··· 1 + # fly.toml app configuration file generated for blonk on 2024-01-15T12:00:00Z 2 + # 3 + # See https://fly.io/docs/reference/configuration/ for information about how to use this file. 4 + # 5 + 6 + app = "blonk" 7 + primary_region = "dfw" 8 + 9 + [build] 10 + 11 + [env] 12 + DATABASE_URL = "ecto://postgres:postgres@top1.nearest.of.blonk-db.internal/blonk" 13 + PHX_HOST = "blonk.fly.dev" 14 + PORT = "8080" 15 + MIX_ENV = "prod" 16 + 17 + [http_service] 18 + internal_port = 8080 19 + force_https = true 20 + auto_stop_machines = true 21 + auto_start_machines = true 22 + min_machines_running = 0 23 + processes = ["app"] 24 + 25 + [[vm]] 26 + memory = "1gb" 27 + cpu_kind = "shared" 28 + cpus = 1 29 + 30 + [[statics]] 31 + guest_path = "/app/priv/static" 32 + url_prefix = "/assets" 33 + 34 + [deploy] 35 + release_command = "/app/bin/migrate" 36 + 37 + [processes] 38 + app = "/app/bin/server" 39 + 40 + [[services]] 41 + protocol = "tcp" 42 + internal_port = 8080 43 + processes = ["app"] 44 + 45 + [[services.ports]] 46 + port = 80 47 + handlers = ["http"] 48 + force_https = true 49 + 50 + [[services.ports]] 51 + port = 443 52 + handlers = ["tls", "http"] 53 + 54 + [services.concurrency] 55 + type = "connections" 56 + hard_limit = 1000 57 + soft_limit = 1000 58 + 59 + [[services.tcp_checks]] 60 + interval = "15s" 61 + timeout = "2s" 62 + grace_period = "1s" 63 + restart_limit = 0