Permalink
Browse files

Make Bullet work with Cowboy 0.9.0

  • Loading branch information...
1 parent d3e906f commit f541942867e31671ca8f5fd51508cd2e76bdedfa @essen essen committed Nov 14, 2013
Showing with 4 additions and 8 deletions.
  1. +1 −1 Makefile
  2. +1 −0 examples/clock/src/clock.erl
  3. +1 −6 examples/clock/src/clock_app.erl
  4. +1 −1 rebar.config
View
@@ -5,7 +5,7 @@ PROJECT = bullet
# Dependencies.
DEPS = cowboy
-dep_cowboy = https://github.com/extend/cowboy.git 0.8.4
+dep_cowboy = https://github.com/extend/cowboy.git 0.9.0
# Standard targets.
@@ -22,5 +22,6 @@
start() ->
ok = application:start(crypto),
ok = application:start(ranch),
+ ok = application:start(cowlib),
ok = application:start(cowboy),
ok = application:start(clock).
@@ -15,12 +15,7 @@ start(_Type, _Args) ->
{'_', [
{"/", toppage_handler, []},
{"/bullet", bullet_handler, [{handler, stream_handler}]},
- {"/static/[...]", cowboy_static, [
- {directory, {priv_dir, bullet, []}},
- {mimetypes, [
- {<<".js">>, [<<"application/javascript">>]}
- ]}
- ]}
+ {"/static/[...]", cowboy_static, {priv_dir, bullet, []}}
]}
]),
{ok, _} = cowboy:start_http(http, 100,
View
@@ -1,4 +1,4 @@
{deps, [
{cowboy, ".*",
- {git, "git://github.com/extend/cowboy.git", {tag, "0.8.4"}}}
+ {git, "git://github.com/extend/cowboy.git", {tag, "0.9.0"}}}
]}.

0 comments on commit f541942

Please sign in to comment.