Skip to content

Commit

Permalink
Fixed the startup and the procfile (thanks archaelus)
Browse files Browse the repository at this point in the history
  • Loading branch information
nisbus committed Nov 2, 2012
1 parent ac57775 commit 933109f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Procfile
@@ -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
4 changes: 2 additions & 2 deletions src/monterl_carlo_websocket.erl
Expand Up @@ -45,8 +45,8 @@ start_phase(listen,_Type,_Args) ->
{mimetypes, [{<<".js">>, [<<"text/javascript">>]}]}]}, {mimetypes, [{<<".js">>, [<<"text/javascript">>]}]}]},
{'_', monterl_carlo_websocket_handler, []} {'_', 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, ok) -> ok;
start_ok(_App, _Type, {error, {already_started, _App}}) -> ok; start_ok(_App, _Type, {error, {already_started, _App}}) -> ok;
Expand Down
3 changes: 0 additions & 3 deletions start.sh

This file was deleted.

0 comments on commit 933109f

Please sign in to comment.