Changes between Version 12 and Version 13 of Web2
- Timestamp:
- Oct 10, 2023, 10:33:11 PM (14 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Web2
v12 v13 78 78 === Startup: !RefactorErl shell 79 79 80 We have two functions for starting the interface : {{{ri:start_web 2/0}}} and {{{ri:start_web2/1}}}. Without passing any parameters the web server starts up with the default configuration. The 1-arity function allows the interface to be configured using an [http://www.erlang.org/doc/man/proplists.html Erlang proplist]. Example:81 {{{ 82 #!erlang 83 84 ri:start_web 2([80 We have two functions for starting the interface : {{{ri:start_web/0}}} and {{{ri:start_web/1}}}. Without passing any parameters the web server starts up with the default configuration. The 1-arity function allows the interface to be configured using an [http://www.erlang.org/doc/man/proplists.html Erlang proplist]. Example: 81 {{{ 82 #!erlang 83 84 ri:start_web([ 85 85 {yaws_path,"/Users/V/yaws-1.95/ebin"}, 86 86 {yaws_listen,"127.0.0.1"}, … … 96 96 #!erlang 97 97 98 ri:start_web 2([98 ri:start_web([ 99 99 {browser_root, ["/Users/V/erlang", "/Users/V/project"]}]). 100 100 }}} … … 103 103 == Shutting down 104 104 105 You are advised to always log out before shutting down the web server, because the log-out process deletes temporary, dynamically generated components of web pages. If the server has been started from the !RefactorErl shell, then {{{ri:stop_web 2()}}} should be called in order to shut down the service.105 You are advised to always log out before shutting down the web server, because the log-out process deletes temporary, dynamically generated components of web pages. If the server has been started from the !RefactorErl shell, then {{{ri:stop_web()}}} should be called in order to shut down the service. 106 106 107 107