/active

Active development for Erlang: rebuild and reload source/binary files while the VM is running

Primary LanguageErlangISC LicenseISC

active

Active is an Erlang application that triggers rebuilds according to source changes. Active is also a new sync.

The key features are:

  • active no longer hogs disk and cpu to check for changes. Instead, it uses erlfsmon to observe filesystem events.
  • active picks up new module files in your working directory

Setting up

Just add a line to rebar.config:

    {active, ".*", {git, "git://github.com/proger/active", "HEAD"}}

And make sure you start it along in your release boot scripts or application startup scripts:

ERL_LIBS=deps erl -pa ebin -config sys.config \
    -eval '[ok = application:ensure_started(A, permanent) || A <- [erlfsmon,active]]'

That's it!