[英]start erlang application from command line
我有一個用rebar編譯的erlang應用程序。
通常我會這樣開始:
application:start(myapp).
從erl shell里面。
誰能告訴我如何像正常的命令行程序一樣啟動它?
你可以做:
erl -pa ebin -eval "application:start(myapp)"
如果您希望它在后台運行,請添加-noshell -detached
創建shell腳本,類似於:
exec erl -pa ebin/ deps/*/ebin -s myapp
您需要的其他選項見http://www.erlang.org/doc/man/erl.html 。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.