Skip to content

Instantly share code, notes, and snippets.

@daoswald
Created November 23, 2014 00:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daoswald/7c11a406126aabfcfa30 to your computer and use it in GitHub Desktop.
Save daoswald/7c11a406126aabfcfa30 to your computer and use it in GitHub Desktop.
My Mojolicious::Lite webserver...
#!/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