Skip to content

Instantly share code, notes, and snippets.

@stupidbodo
Last active December 25, 2015 12:09
Show Gist options
  • Save stupidbodo/6974895 to your computer and use it in GitHub Desktop.
Save stupidbodo/6974895 to your computer and use it in GitHub Desktop.
Basics of Erlang
# erl arguments
# -pa Dir1 Dir2 ...
# What this does is add specified directories when you run erl. Standard usage below.
# Normally we would add main project ebin directory as well as deps ebin directory.
erl -pa deps/*/ebin ebin
# -smp [enable|auto|disable]
# SMP options. Auto means use enable when SMP is supported. Using auto is recommended!
erl -smp auto
# check erlang version
erl -eval 'erlang:display(erlang:system_info(otp_release)), halt().' -noshell
# run erlang in background.
erl -detached
# specify erlang config file
erl -config ./config/sys.config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment