Skip to content

SteffenDE/demo_system

 
 

Repository files navigation

Demo system

https://www.youtube.com/watch?v=JvBT4XBdoUE

Getting started

Requires Erlang and Elixir, as specified in the .tool-versions file. You can use asdf for that.

Building:

mix deps.get && mix compile

Starting for development with live reload:

iex -S mix phx.server

Then, you can visit the following links:

Docker

docker build -t example_system .
docker run --rm -p 4000:4000 -e NODE_NAME=node1 example_system

or as cluster

docker compose up

Demo

Building and starting locally (production-like release):

mix release --overwrite
NODE_NAME=node1 ./_build/prod/rel/example_system/bin/example_system start

Open the remote console:

NODE_NAME=node1 ./_build/prod/rel/example_system/bin/example_system remote

Hot upgrade with no downtime:

mix system.upgrade

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Elixir 88.8%
  • JavaScript 3.7%
  • CSS 3.2%
  • Dockerfile 2.9%
  • HTML 1.4%