Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Easy way of loading project's Rebar dependencies in Erlang shell

Tags:

erlang

rebar

I've got a project that uses Rebar as build tool. When developing, I would like all my app dependencies that are specified in Rebar.config be compiled & loaded in the shell as easy as possible. I'm using the Erlang shell in Emacs. What's a quick way to do this?

like image 990
Ward Bekker Avatar asked Aug 02 '11 14:08

Ward Bekker


2 Answers

I'm not using Emacs so I may miss the Emacs-specific side of your question, but when I want an Erlang shell with all my rebar dependencies loaded, I use:

erl -pa ebin deps/*/ebin
like image 52
David Dossot Avatar answered Sep 20 '22 15:09

David Dossot


./rebar shell

should load all your dependencies.

like image 38
Vishal Avatar answered Sep 20 '22 15:09

Vishal