[erlang-questions] "Automatic" recompile app from a console
Fri Feb 1 09:25:52 CET 2013
A long time ago I used the attached bash script which utilizes
"inotifywait" tool (I think it's Linux only feature) to wait for some
files changed and then it does a command you've given. I used it for TDD
;);) Theoretically you may use "inotifywait" to compile if some sources
changed and then to reload the modules if *.beam files changed (due to
compilation) using some rpc:call to specified node.
W dniu 31.01.2013 22:08, John Kemp pisze:
> 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?
> erlang-questions mailing list
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1877 bytes
Desc: not available
More information about the erlang-questions