Hermes' son
Erlang
Pull request Compare This branch is 4 commits ahead, 1 commit behind tsloughter:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
lib
Procfile
README.md
rebar
rebar.config
sinan
sinan.config

README.md

Quickstart

rebar get-deps compile
foreman start dwight

Running Dependencies

Application Version
cowboy tsloughter/client_improvements
gproc 0.2.13

Testing Dependencies

Application Version
ibrowse 3.0.3

Building

$ export ERL_LIBS=$ERL_LIBS:./deps
$ ./sinan dist

Running

$ _build/dwight/bin/dwight -config config/sys.config

Testing

The configuration is currently as follows

[ {dwight_routes, [{domains, [{<<"localhost">>, <<"abc">>}]},
                   {route_ids, [{<<"abc">>, <<"localhost">>, 7999}]}]} ].

So if you have a local web server on 7999 you can use either curl or dwight_test:

$ curl -v localhost:8080
1> dwight_test:run().