run_emqx.escript 336 B

12345678910111213
  1. #!/usr/bin/env escript
  2. main(_) ->
  3. start().
  4. start() ->
  5. SpecEmqxConfig = fun(_) -> ok end,
  6. start(SpecEmqxConfig).
  7. start(SpecEmqxConfig) ->
  8. SchemaPath = filename:join(["priv", "emqx.schema"]),
  9. ConfPath = filename:join(["etc", "emqx.conf"]),
  10. emqx_ct_helpers:start_app(emqx, SchemaPath, ConfPath, SpecEmqxConfig).