fix endpoint
This commit is contained in:
parent
8345a5fbc0
commit
eaddd964ea
@ -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(),
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user