[erlang-questions] "Automatic" recompile app from a console

Serge Aleynikov <>
Fri Feb 1 16:53:05 CET 2013


Another alternative to autoloading of modified beam files the moment
modification is made is to include the following user_default module [1]
in the ERL_LIBS path, which will add a handful of useful commands to the
shell including l() that will reload all modified beams.

Serge

[1] https://github.com/saleyn/util/blob/master/src/user_default.erl

On 2/1/2013 10:40 AM, John Kemp wrote:
> This does not seem to work on a Mac FWIW since there is no equivalent of the inotify tools on OS X, for similar reasons to Damian's suggestion. Otherwise (on Linux), it looks promising...
> 
> Cheers,
> 
> John
> 
> On Jan 31, 2013, at 10:16 PM, Slava Yurin wrote:
> 
>> Hi John.
>>  
>> Maybe  https://github.com/tex/ssync can help you.
>>  
>> 01.02.2013, 04:09, "John Kemp" <>:
>> Hi,
>>
>> I have been writing an application using rebar to build the app. I run 
>> the server and open a console. I then change the source code and 
>> apparently I need to leave the console, 'make rel' and restart the app 
>> and the console.
>>
>> I'm sure there's a better way to do what I'm doing.
>>
>> One project I found is https://github.com/rustyio/sync, but this did not 
>> (yet) work for me according to the instructions.
>>
>> How can I have my rebar (or just Erlang) app automatically recompile 
>> ('make rel') when one of the source files changes, or run a command from 
>> within the console to do this?
>>
>> Cheers,
>>
>> JohnK
>> _______________________________________________
>> erlang-questions mailing list
>> 
>> http://erlang.org/mailman/listinfo/erlang-questions
>>
> 
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions
> 



More information about the erlang-questions mailing list