Skip to content
Permalink
Browse files

Example configs for Mojolicious

  • Loading branch information...
kensanata committed Jun 10, 2019
1 parent 4e4d8ee commit b89c8b99e8d9f678c11b37e7fd9903b5b9741127
Showing with 30 additions and 1 deletion.
  1. +4 −0 stuff/hypnotoad.pl
  2. +17 −0 stuff/mojolicious-app.pl
  3. +8 −0 stuff/toadfarm.pl
  4. +1 −1 wiki.pl
@@ -0,0 +1,4 @@
use Mojo::Server::Hypnotoad;
warn "Use hypnotoad -s stuff/hypnotoad.pl to stop the server\n";
my $hypnotoad = Mojo::Server::Hypnotoad->new;
$hypnotoad->run('stuff/mojolicious-app.pl');
@@ -0,0 +1,17 @@
# From the root directory, run one of the following:
# 1. stuff/mojolicious-app.pl daemon -l http://localhost:8080
# 2. stuff/hypnotoad.pl
# 3. stuff/toadfarm.pl start

use Mojolicious::Lite;

plugin CGI => {
support_semicolon_in_query_string => 1,
};

plugin CGI => {
route => '/',
script => 'wiki.pl',
};

app->start;
@@ -0,0 +1,8 @@
use Toadfarm -init;

mount "stuff/mojolicious-app.pl" => {
"Host" => qr{^localhost:8080$},
mount_point => '/',
};

start;
2 wiki.pl 100644 → 100755
@@ -1,4 +1,4 @@
#! /usr/bin/perl
#! /usr/bin/env perl
# Copyright (C) 2001-2019
# Alex Schroeder <alex@gnu.org>
# Copyright (C) 2014-2015

0 comments on commit b89c8b9

Please sign in to comment.
You can’t perform that action at this time.