Skip to content

Commit

Permalink
CHANGED: always run web server
Browse files Browse the repository at this point in the history
  • Loading branch information
nkh committed Dec 1, 2023
1 parent ddba6ff commit 6bb565e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 0 additions & 4 deletions lib/App/Asciio/Options.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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.',
'',
Expand Down
7 changes: 1 addition & 6 deletions script/asciio
Original file line number Diff line number Diff line change
Expand Up @@ -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 ;
Expand Down Expand Up @@ -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();

0 comments on commit 6bb565e

Please sign in to comment.