diff --git a/apps/iot/src/iot_app.erl b/apps/iot/src/iot_app.erl index fc8b932..b92214c 100644 --- a/apps/iot/src/iot_app.erl +++ b/apps/iot/src/iot_app.erl @@ -19,14 +19,15 @@ start(_StartType, _StartArgs) -> catch Class:Reason:Stack -> logger:warning("[iot_app] start failed, class: ~p, reason: ~p, stack: ~p", [Class, Reason, Stack]), - iot_mnesia:init() + ok = iot_mnesia:init() end, - start_endpoints(), - %% 启动http服务。当前 supervisor 初始化依赖本机 simulator API,因此保留此顺序。 start_http_server(), + %% 启动endpoints的相关依赖 + start_endpoints(), + %% 启动ssl服务 start_ssl_server(),