Created
November 23, 2014 00:37
-
-
Save daoswald/7c11a406126aabfcfa30 to your computer and use it in GitHub Desktop.
My Mojolicious::Lite webserver...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use Cwd; | |
use Mojolicious::Lite; | |
get '/' => sub { shift->reply->static('index.html') }; | |
app->static->paths->[0] = getcwd; | |
app->start( qw{ daemon -l http://*:8080 } ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment