From 6bb565e4a7b6e6efcf6e35f7444a243167944a42 Mon Sep 17 00:00:00 2001 From: Nadim Khemir Date: Fri, 1 Dec 2023 05:00:20 +0100 Subject: [PATCH] CHANGED: always run web server --- .../mdbook_asciio/src/for_developers/scripting_execute.md | 2 +- lib/App/Asciio/Options.pm | 4 ---- script/asciio | 7 +------ 3 files changed, 2 insertions(+), 11 deletions(-) diff --git a/documentation/mdbook_asciio/src/for_developers/scripting_execute.md b/documentation/mdbook_asciio/src/for_developers/scripting_execute.md index f7a46b05..7b027773 100644 --- a/documentation/mdbook_asciio/src/for_developers/scripting_execute.md +++ b/documentation/mdbook_asciio/src/for_developers/scripting_execute.md @@ -24,7 +24,7 @@ asciio -s full_path_to_script You can POST scripts via HTTP. -Start Asciio with **--web_server**, a server will run at port **4444**; you can change the port with **--port other_port**. +Asciio runs a web server at port **4444**; you can change the port with **--port other_port**. ### script commands diff --git a/lib/App/Asciio/Options.pm b/lib/App/Asciio/Options.pm index e4783415..0ff038b1 100644 --- a/lib/App/Asciio/Options.pm +++ b/lib/App/Asciio/Options.pm @@ -89,10 +89,6 @@ my @flags_and_help = 'script to be run at Asciio start.', '', - 'web_server' => \$asciio_config->{WEB_SERVER}, - 'Asciio run a script we server at port 4444 (see --web_port).', - '', - 'p|web_port=s' => \$asciio_config->{WEB_PORT}, 'port for web server.', '', diff --git a/script/asciio b/script/asciio index a88e1517..d3b8ec62 100755 --- a/script/asciio +++ b/script/asciio @@ -10,6 +10,7 @@ use Gtk3 -init; Gtk3->init; use App::Asciio::GTK::Asciio ; +use App::Asciio::Server ; use Module::Util qw(find_installed) ; use File::Basename ; @@ -122,13 +123,7 @@ $asciios[0]->exit() ; #-------------------------------------------------------------------------- -if($asciio_config->{WEB_SERVER}) -{ -require App::Asciio::Server ; - App::Asciio::Server::start_web_server($asciios[0], $asciio_config->{WEB_PORT} // 4444) ; -} - Gtk3->main();