Last active
December 25, 2015 12:09
-
-
Save stupidbodo/6974895 to your computer and use it in GitHub Desktop.
Basics of Erlang
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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