Grapevine is a MUD chat network.
View the websocket details on Grapevine.
This is only required to run Grapevine itself, the server. These are not required to connect as a game. See the above websocket docs for connecting as a client.
- PostgreSQL 11
- Elixir 1.9.0
- Erlang 22.0.4
- node.js 10.13.0
- Yarn
mix deps.get
mix compile
yarn --cwd assets
mix ecto.reset
mix phx.server
This will start a web server on port 4100. You can now load http://localhost:4100/ to view the application.
MIX_ENV=test mix ecto.create
MIX_ENV=test mix ecto.migrate
mix test
Telnet connections live in the apps/telnet
application. This node holds the telnet connections so the main application can reboot on deploys and not drop active game connections.
For deployment the telnet application needs to be on its own erlang node. You can connect with something similar to:
config :grapevine,
topologies: [
local: [
strategy: Cluster.Strategy.Epmd,
config: [
hosts: [
:grapevine@localhost,
:telnet@localhost,
]
]
]
]
- Game sets the CNAME to
client.grapevine.haus
- Game must have a homepage url
- Game must have the web client enabled
- Update game's record for their CNAME
- Update nginx config for new domain
- Run certbot for the new domain
- Refresh CNAMEs in ETS
Grapevine.CNAMEs.reload()