나는 st_db.app 파일에 다음과 같이 필요한 응용 프로그램을 가지고있다 :Erlang : 어떻게하면 필요한 모든 응용 프로그램을 자동으로 시작할 수 있습니까?
{application, st_db,
[
{description, ""},
{vsn, "1.0.0"},
{registered, []},
{modules, [st_db_app, st_db_sup, st_db]},
{applications, [
kernel,
stdlib,
sasl,
crypto,
ibrowse,
couchbeam
]},
{mod, { st_db_app, []}},
{env, []}
]}.
나는 (crypto, sasl 등) 자동으로 실행하고 메인 응용 프로그램을 디버깅 할 필요가있다. 내가 찾은 유일한 해결책은 이러한 매개 변수로 erl을 시작하는 것입니다.
erl -pa ./ebin -pa ./deps/*/ebin -boot start_sasl -s couchbeam -s crypto -s ibrowse
유일한 방법입니까?
추신 : btw couchbeam 노드에서 시작되지 않습니다. 그냥 couchbeam의 감독자를 시작, 그래서 그것을 수동으로 쉘에서 실행해야합니다
=PROGRESS REPORT==== 15-Jun-2011::10:22:43 ===
supervisor: {local,couchbeam_sup}
started: [{pid,<0.62.0>},
{name,couchbeam},
{mfargs,{couchbeam,start_link,[]}},
{restart_type,permanent},
{shutdown,2000},
{child_type,worker}]
2> application:start(couchbeam).
ok
3>
=PROGRESS REPORT==== 15-Jun-2011::10:23:25 ===
supervisor: {local,couchbeam_sup}
started: [{pid,<0.69.0>},
{name,couchbeam},
{mfargs,{couchbeam,start_link,[]}},
{restart_type,permanent},
{shutdown,2000},
{child_type,worker}]
=PROGRESS REPORT==== 15-Jun-2011::10:23:25 ===
application: couchbeam
started_at: [email protected]
그것을 고치는 방법이 있습니까?