Skip to content

Instantly share code, notes, and snippets.



Created Jan 23, 2013
What would you like to do?
How to use the Morbo (include Mojolicious) as a simple http daemon. For example, it will be useful for doing development with XMLHTTPRequest(Javascript) on localhost.
#!/usr/bin/env perl
use Mojolicious::Lite;
push @{app->static->paths}, 'site/'; # File path
# Execute this script on terminal: perl
# Then, let's access to http://localhost:3000/***

This comment has been minimized.

Copy link
Owner Author

@mugifly mugifly commented Aug 19, 2013


push @{app->static->paths}, '.'; # File path


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.