Help for this page

Select Code to Download


  1. or download this
    $ mojo generate lite_app
      [exist] /foo/foo
    ...
    [Sun Feb 12 21:45:04 2017] [info] Listening at "http://*:3000"
    Server available at http://127.0.0.1:3000
    Terminating on signal SIGINT(2)
    
  2. or download this
    $ perl -le"print ~~localtime; system $^X, q[myapp.pl], q[daemon] "
    Sun Feb 12 21:51:39 2017
    [Sun Feb 12 21:51:45 2017] [info] Listening at "http://*:3000"
    Server available at http://127.0.0.1:3000
    Terminating on signal SIGINT(2)
    
  3. or download this
    $ perl -le"for(1..10){ print ~~localtime; system $^X, q[myapp.pl], q[d
    +aemon]; } "
    Sun Feb 12 21:53:07 2017
    [Sun Feb 12 21:53:11 2017] [info] Listening at "http://*:3000"
    ...
    Sun Feb 12 21:53:29 2017
    [Sun Feb 12 21:53:33 2017] [info] Listening at "http://*:3000"
    Server available at http://127.0.0.1:3000