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
Post a Comment