Skip to content

Latest commit

 

History

History

erlang

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Deploying an Erlang App on Flux Network with Deploy With Git

This is a minimal Erlang/OTP HTTP app ready to deploy on Flux Network using Deploy With Git.

How Flux Detects This App

Flux identifies Erlang projects by rebar.config. It then:

  1. Reads the Erlang/OTP version from .tool-versions
  2. Installs Rebar3 and resolves dependencies
  3. Builds a production relx release with rebar3 as prod release
  4. Starts the generated release in the foreground

The supervised server binds to 0.0.0.0 and reads the port from PORT. This sample has no third-party dependencies.

Deploy

Deploy on Flux

Or configure it manually:

  1. Go to orbit.app.runonflux.io.
  2. Select this repository, the master branch, and project path erlang.
  3. Select the free plan and set the application port to 8080.
  4. Review and register the app.

The app will be available at a URL like https://YOUR-APP-NAME.app.runonflux.com.

Configuration

Variable Description Default
PORT Port used by the HTTP server 8080
OTP_VERSION Overrides the Erlang/OTP version in .tool-versions 28.4
REBAR3_VERSION Overrides Orbit's Rebar3 version Orbit default
BUILD_COMMAND Overrides the automatic Rebar3 release build —
RUN_COMMAND Overrides relx release startup —

Set the Flux application port to the same value as PORT.

Run Locally

rebar3 shell

Open http://localhost:8080. The health endpoint is http://localhost:8080/health.

Resources