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

Damian Dobroczyński qoocku@REDACTED
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.

-- D.

W dniu 31.01.2013 22:08, John Kemp pisze:
> 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
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions

-------------- next part --------------
A non-text attachment was scrubbed...
Name: fmon.sh
Type: application/x-shellscript
Size: 1877 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20130201/d046fcc3/attachment.bin>


More information about the erlang-questions mailing list