aboutsummaryrefslogtreecommitdiffstats
path: root/dev/server.pl
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem.moulin@fripost.org>2012-09-10 20:07:18 +0200
committerGuilhem Moulin <guilhem.moulin@fripost.org>2012-09-10 20:07:35 +0200
commit9881490f8c578555aa2349f8223104aa22fc8954 (patch)
tree201aa8f9f795f5a8823f81e4e5d3eab22e4110e3 /dev/server.pl
parenteaacbeb2d5fece7fe9cab570f262a8f29be96863 (diff)
Development server.
Diffstat (limited to 'dev/server.pl')
-rwxr-xr-xdev/server.pl28
1 files changed, 28 insertions, 0 deletions
diff --git a/dev/server.pl b/dev/server.pl
new file mode 100755
index 0000000..4b52789
--- /dev/null
+++ b/dev/server.pl
@@ -0,0 +1,28 @@
+#!/usr/bin/perl -CADS
+
+use strict;
+use warnings;
+use utf8;
+
+use dev::MyServer;
+use lib 'lib';
+use Fripost::Panel::Interface;
+
+my $server = MyServer->new();
+
+$server->entry_points({
+ '/cgi-bin' => 'Fripost::Panel::Interface'
+});
+
+my @config = 'default.in';
+push @config, 'config.in' if -f 'config.in';
+
+# TODO: This is only for testing purposes. Using a blessed target above
+# prevents me from logging in.
+$server->options({
+ '/cgi-bin' => {
+ PARAMS => { cfg_file => [ @config ], format => 'equal' }
+ }
+});
+
+$server->run();