perl - How do i use Hypnotoad as a http server -


i trying use hypnotoad server serve static html pages. configuration need or shall keep static html files hypnotoad pick them.

thanks!!

iirc servers provided mojolicious, of hypnotoad one, serve static html folder named public. should need basic of applications start server. should enough simple use,

#!/usr/bin/env perl use mojolicious::lite;  # needed setup usual index.html landing '/' => sub {   shift->render_static('index.html'); };  app->start; 

and run hypnotoad myapp.pl (assuming script saved myapp.pl , in same location public folder).


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -