Skip to content
This repository

The first version polls a configured directory, compiles the source and load the changes

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 doc
Octocat-spinner-32 include
Octocat-spinner-32 priv
Octocat-spinner-32 src
Octocat-spinner-32 templates
Octocat-spinner-32 test
Octocat-spinner-32 testdir
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.md
Octocat-spinner-32 eunit.sh
Octocat-spinner-32 rebar.config
Octocat-spinner-32 start.sh
README.md

What is erlbuild and for what is it good?

erlbuild is a developer tool which reduce the cycle of comiling code, testing code and reloading code. Everthing the developer has to do is to save his(her) source file and erlbuild will do the rest for you.

Status

  • support of erlang source files in the src directory
  • support of erlydtl *.dtl files in the templates directory

Configuration

To configure erlbuild for your project, you only have to configure the dependency and start erlbuild.

rebar.config

If you already have a rebar.config file, than insert the erlbuild dependency into the config file.

{deps, [ {erlbuild, ".*", {git, "git@github.com:ulfa/erlbuild.git", "HEAD"}} ]}.

How to start erlbuild

To start erlbuild you can do the following :

  • in the shell : application:start(erlbuild)
  • when you start the erlang shell erl -pa $PWD/ebin $PWD/test $PWD/deps/*/ebin -boot start_sasl -s erlbuild

ToDos

Before erlbuild will compile and reload the first time, you have to compile your sources once. After this, erlbuild will do the job for you.

Second issue.

When the beam is not loaded, only compiled into the ebin directory and then you edit and make a mistake. The src file won't be compiled again, because the cc_file_poller is buggy.

Something went wrong with that request. Please try again.