in reply to Re: Run Perl Mojolicio Server from SSH
in thread Run Perl Mojolicio Server from SSH
The server file is a script that raise the server is has the following code:
#!/usr/bin/env perl use Mojo::Base -strict; use File::Basename 'dirname'; use File::Spec::Functions qw(catdir splitdir); # Source directory has precedence my @base = (splitdir(dirname(__FILE__)), '..'); my $lib = join('/', @base, 'lib'); -e catdir(@base, 't') ? unshift(@INC, $lib) : push(@INC, $lib); # Start commands for application require Mojolicious::Commands; Mojolicious::Commands->start_app('MyServer', 'daemon','-l','http://*:3 +030');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Run Perl Mojolicio Server from SSH
by Anonymous Monk on Feb 06, 2014 at 10:54 UTC | |
by iseif (Novice) on Feb 06, 2014 at 11:14 UTC | |
by Anonymous Monk on Feb 06, 2014 at 11:30 UTC | |
by iseif (Novice) on Feb 06, 2014 at 11:54 UTC | |
by iseif (Novice) on Feb 06, 2014 at 12:07 UTC |