Phoenix and Elixir
Deploy Phoenix with Postgres, ClickHouse or Redis, and migrations through the release.
Step by step: Deploy Phoenix to DigitalOcean · Deploy Phoenix to Hetzner · Deploy Phoenix to Vultr · Deploy Phoenix to OVHcloud
- Datastores from
mix.exs:ecto_sql/postgrex→ Postgres,ecto_ch/ch→ ClickHouse,redix→ Redis. - Migrations:
mix ecto.migrate. Compiled releases have nomixat runtime, so Railyard finds the release wherever the image puts it and runs its migrator (bin/migrateif present, otherwisebin/<app> eval).mix phx.serverbecomesbin/<app> startthe same way. - Variables read in
config/runtime.exs(BASE_URL,HTTP_PORT,LISTEN_IP,DATABASE_URL,CLICKHOUSE_DATABASE_URL…) are wired automatically;SECRET_KEY_BASEis generated. MIX_ENV=prodandPHX_SERVER=trueare set.