An Elixir client/demo for Corrosion
Build corrosion for amd64 () Copy the corrosion executable to the project dir Set some env vars iex mix phx.server
fly apps create put the new app name into fly.toml so you don't have to keep using -a fly secrets set SECRET_KEY_BASE=$(mix phx.gen.secret 64) fly volumes create corro_data -y -s 1 # (can skip this; fly deploy will do it) fly ips allocate-v4 --shared fly ips allocate-v6
fly deploy -a corrodemo -c fly-separate.toml --dockerfile Dockerfile-separate
fly deploy -a sandwich-builtin --dockerfile Dockerfile-allinone
- CORRO_BUILTIN and FLY_CORROSION_APP are used to determine whether to use local corrosion or a separate app
- right now it exits when corrosion app isn't reachable. THis is for corrosion testing, so I can see the logs