Permalink
Browse files

Fixed the startup and the procfile (thanks archaelus)

  • Loading branch information...
1 parent ac57775 commit 933109fe42488b3e1746f86e85e6f333011a43ba @nisbus committed Nov 2, 2012
Showing with 3 additions and 6 deletions.
  1. +1 −1 Procfile
  2. +2 −2 src/monterl_carlo_websocket.erl
  3. +0 −3 start.sh
View
@@ -1 +1 @@
-web: erl -pa ebin -env ERL_LIBS deps -s monterl_carlo_websocket -ef http_port $PORT -noshell -noinput
+web: erl -pa ebin -env ERL_LIBS deps -s monterl_carlo_websocket -monterl_carlo_websocket http_port $PORT -noshell -noinput
@@ -45,8 +45,8 @@ start_phase(listen,_Type,_Args) ->
{mimetypes, [{<<".js">>, [<<"text/javascript">>]}]}]},
{'_', monterl_carlo_websocket_handler, []}
]}],
-
- cowboy:start_http(http, 100, [{port, config(http_port)}],[{dispatch, Dispatch}]).
+ cowboy:start_http(http, 100, [{port, config(http_port)}],[{dispatch, Dispatch}]),
+ ok.
start_ok(_App, _Type, ok) -> ok;
start_ok(_App, _Type, {error, {already_started, _App}}) -> ok;
View
@@ -1,3 +0,0 @@
-#!/bin/sh
-cd `dirname $0`
-exec erl -pa $PWD/ebin $PWD/deps/*/ebin -boot start_sasl -s monterl_carlo_websocket

0 comments on commit 933109f

Please sign in to comment.