Rename rabbitmq-mochiweb to rabbitmq-web-dispatch
This commit is contained in:
parent
75678be607
commit
23cd77d66a
|
|
@ -1,5 +1,5 @@
|
|||
RELEASABLE:=true
|
||||
DEPS:=rabbitmq-mochiweb rabbitmq-web-stomp rabbitmq-server
|
||||
DEPS:=rabbitmq-web-dispatch rabbitmq-web-stomp rabbitmq-server
|
||||
|
||||
define construct_app_commands
|
||||
cp -r $(PACKAGE_DIR)/priv $(APP_DIR)
|
||||
|
|
|
|||
|
|
@ -26,13 +26,13 @@
|
|||
|
||||
start(_Type, _StartArgs) ->
|
||||
{ok, Listener} = application:get_env(rabbitmq_web_stomp_examples, listener),
|
||||
{ok, _} = rabbit_mochiweb:register_static_context(
|
||||
{ok, _} = rabbit_web_dispatch:register_static_context(
|
||||
web_stomp_examples, Listener, "web-stomp-examples", ?MODULE,
|
||||
"priv", "WEB-STOMP: examples"),
|
||||
supervisor:start_link({local, ?MODULE}, ?MODULE, []).
|
||||
|
||||
stop(_State) ->
|
||||
rabbit_mochiweb:unregister_context(web_stomp_examples),
|
||||
rabbit_web_dispatch:unregister_context(web_stomp_examples),
|
||||
ok.
|
||||
|
||||
init([]) -> {ok, {{one_for_one, 3, 10}, []}}.
|
||||
|
|
|
|||
|
|
@ -5,4 +5,4 @@
|
|||
{registered, []},
|
||||
{mod, {rabbit_web_stomp_examples_app, []}},
|
||||
{env, [{listener, [{port, 15670}]}]},
|
||||
{applications, [kernel, stdlib, rabbitmq_mochiweb, rabbitmq_web_stomp]}]}.
|
||||
{applications, [kernel, stdlib, rabbitmq_web_dispatch, rabbitmq_web_stomp]}]}.
|
||||
|
|
|
|||
Loading…
Reference in New Issue