Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Autoloading of modules
%% autoload all modules that are in the code:path() and reside in the user directory
%% put in ~/.erlang
|| P <- lists:filter(fun(Path) -> string:str(Path, os:getenv("USER")) > 0 end, code:get_path()), F <- filelib:wildcard(P ++ "/*.beam")].
# Includes Rebar dependencies, make sure the beam files are up-to-date.
rebar get-deps compile
erl -pa `pwd`/ebin `pwd`/deps/*/ebin -boot start_sasl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment