forked from ChicagoBoss/ChicagoBoss
-
Notifications
You must be signed in to change notification settings - Fork 0
Windows instructions
PureIso edited this page Jul 25, 2013
·
6 revisions
- Install Erlang and git.
- Use git to get ChicagoBoss code.
- Use rebar to build ChicagoBoss and its dependencies.
A few definitions:
- git is source control tool, which happens to be used at GitHub
- rebar is a build tool used by ChicagoBoss and many other Erlang projects.
- Download Erlang for Windows
- Install Erlang
- Add the directory of the Erlang binary to your path (instructions)
- Download and install git
git clone git://github.com/evanmiller/ChicagoBoss.git
cd chicagoboss
windows-make.bat
Note: windows-make.bat
and windows-make.bat all
are the same thing
To create a new helloworld
project, type:
windows-make.bat app PROJECT=helloworld
cd ..\helloworld
start-server.bat
replaces ./init-dev.sh
on Windows, a Windows Erlang window will open where you can type all ChicagoBoss commands. Also make sure in your boss.config file located in your project directory (helloworld), has the correct path.
Example:
[{boss, [
{path, "../ChicagoBoss-0.8.7"}, %%Note the /ChicagoBoss-0.8.7 not /ChicagoBoss-0.8
{applications, [helloworld]},
{assume_locale, "en"},
In the command prompt, rebar compile
works due to the rebar.cmd
in the helloworld
and ChicagoBoss directory.
It is recommended to use the latest rebar and rebar.cmd with ChicagoBoss:
git clone git://github.com/basho/rebar.git
cd rebar
bootstrap.bat
copy rebar ..\chicagoboss
copy rebar.cmd ..\chicagoboss