Demo
You can see a live version of this demo already deployed
here
libcluster_hop
strategy and exposes a simple HTTP API which lets you see the nodes connected to each other.
Deploying the demo
- Fork elixir_cluster on GitHub.
- Obtain a project token for your Hop project. libcluster uses this to fetch the list of nodes in the cluster using the Hop API. Make sure to select the
Manage Deployments
permission when creating it. - Create a new Hop deployment on the Console and select the GitHub repository you just forked.
- Set the following environment variables before deploying:
Name | Value |
---|---|
HOP_TOKEN | The project token you obtained in step 2 |
RELEASE_DISTRIBUTION | none |
- Hit
Deploy
and wait for the build to finish. - To expose your application to the web, create a Gateway and point it to port
8080
.