This is a minimal Elixir/OTP HTTP app ready to deploy on Flux Network using Deploy With Git.
Flux identifies Elixir projects by mix.exs. It then:
- Reads Elixir and Erlang/OTP versions from
.tool-versions - Installs production dependencies with
MIX_ENV=prod mix deps.get --only prod - Compiles the project and creates a production release with
mix release - Starts the generated release in the foreground
The server binds to 0.0.0.0 and reads the port from PORT, as required by Flux. This sample has no third-party dependencies.
Or configure it manually:
- Go to orbit.app.runonflux.io.
- Select this repository, the
masterbranch, and project pathelixir. - Select the free plan and set the application port to
8080. - Review and register the app.
The app will be available at a URL like https://YOUR-APP-NAME.app.runonflux.com.
| Variable | Description | Default |
|---|---|---|
PORT |
Port and interface used by the HTTP server | 8080 |
ELIXIR_VERSION |
Overrides the Elixir version in .tool-versions |
1.20.2 |
OTP_VERSION |
Overrides the Erlang/OTP version in .tool-versions |
28.4 |
BUILD_COMMAND |
Overrides the automatic Mix build and release | — |
RUN_COMMAND |
Overrides production release startup | — |
Set the Flux application port to the same value as PORT. Orbit also exports MIX_ENV=prod automatically.
mix run --no-haltOpen http://localhost:8080. The health endpoint is http://localhost:8080/health.