How to use application:get_env() in Erlang/OTP?
问题 I created a mochiweb instance src/ |-- Makefile |-- room.erl |-- myserver.app |-- myserver.erl |-- myserver_app.erl |-- myserver_deps.erl |-- myserver_sup.erl |-- myserver_web.erl `-- uuid.erl in myserver_web.erl I am able to access the application config {ok, "0.0.1"} = application:get_key(vsn), However in room.erl , I am not able to access the application config (specifically the env list). undefined = application:get_key(vsn), The supervisor does not start the room, nor do I want it too. I