Behaviours: application
.
The main entry point of the US-Web active OTP application.
Typically triggered:
- through OTP/rebar3, by ebin/us_web.app (as obtained from conf/us_web.app.src; see start/2)
- directly, with the help of Myriad's otp_utils (see exec/0)application_name() = otp_utils:application_name()
exec/0 | Runs US-Web, directly (e.g. |
start/2 | Called when US-Web itself is started as an OTP application (as opposed to natively, "manually", see exec/0). |
start_application/1 | Starts required applications (not used currently). |
stop/1 | Stops the US-Web application. |
exec() -> void()
Runs US-Web, directly (e.g. as 'make us_web_exec') rather than as an OTP release.
start(StartType, StartArgs) -> any()
Called when US-Web itself is started as an OTP application (as opposed to natively, "manually", see exec/0).
The setup and dependency management shall have been done already by the OTP release system. So here no ebin path to set or prerequisite applications to start for applications listed in US-Web's .app file, we focus only on the applications not listed whereas possibly useful in this context (shotgun, elli) and on us_web itself.
Note that it may easier/more reliable to add these applications directly in the OTP release / rebar configuration.start_application(App::application_name()) -> void()
Starts required applications (not used currently).
stop(State) -> any()
Stops the US-Web application.
Generated by EDoc