Skip to content

Instantly share code, notes, and snippets.

@dvv
Created June 1, 2013 14:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dvv/5690670 to your computer and use it in GitHub Desktop.
Save dvv/5690670 to your computer and use it in GitHub Desktop.
Start Erlang
#!/bin/sh -x
# windows
if test "x$USERPROFILE" != x; then
DIRSEP=';'
ERL='start werl'
# *nix
else
DIRSEP=':'
ERL=erl
fi
APP=${PWD##*/}
# -eval "${APP}_app:start()."
${ERL} -env ERL_LIBS ".${DIRSEP}deps" +K true +P 4000000 -smp auto \
-name ${APP}@127.0.0.1 \
-boot start_sasl -sasl errlog_type error \
-s "${APP}_app"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment