Created
October 7, 2016 13:46
-
-
Save Su-Shee/6a71f9272feb8597d488eeec93932f4b to your computer and use it in GitHub Desktop.
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 Mojolicious::Lite; | |
use Cwd; | |
@ARGV = qw(daemon --listen http://*:5000); | |
app->static->paths->[0] = getcwd; | |
# needed to setup the usual index.html landing | |
any '/' => sub { | |
shift->render_static('index.html'); | |
}; | |
app->start; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment