Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 24 lines (20 sloc) 468 Bytes
#!/bin/bash
#
# A simple wrapper for running elixir nodes to ensure that nodes
# are started with credentials sufficient to cluster and attach to
# after they are running.
#
# Usage:
#
# node-start mix phoenix.server
# or
# node-start mix run —no-halt
# exit if any any command fails
set -e
# establish the name and cookie (if available)
name="${HOSTNAME//./-}@$(hostname -I)"
cookie="${COOKIE:-nanobox}"
elixir \
--name $name \
--cookie $cookie \
-S $@
You can’t perform that action at this time.