evanmiller/ChicagoBoss — pull request #97 by rambocoder (2012-04-05 14:32:04+00:00)
Title: Improved Windows Support with instructions in README.MD

I forked your latest code and applied the patches.

With these changes, it's possible to build, run CB and it's app from the command line in Windows. As long as Erlang bin folder is in the path. No need for cygwin, msys, etc.

Changes:

Updated rebar to the latest. Including rebar.cmd in the root of CB and in skel. This allows Windows users to call all rebar command from CMD by just typing: rebar comple, etc..

Updated rebar.conf to compile the dtl file on rebar compile. Under windows, erl -eval "erlydtl:compile("src/boss/boss ... blows up with: (no error logger present) error: "Error in process <0.0.0> with exit value: {function_clause,[{init,prepare_run_args,[{eval,[<<2 bytes>>,<<1 byte>>,<<5 bytes>>]}],[{file,\"init.erl\"},{line,175}]},{init,map,2,[{file,\"init.erl\"},{line,199}]},{init,boot,1,[{file,\"init.erl\"},{line,171}]}]}\n"

^^^ This needs to be investigated, but it seems to be more of an OTP issue.

New apps can be started with start-server.bat. You can even double click it and werl.exe pops up.

I created windows-make.bat for ChicagoBoss, cause Windows users usually don't have GNU make install. windows-make.bat takes most of the parameters that make takes, such as:

windows-make app project=rahm <-- that works
windows-make all
windows-make test
windows-make clean