/[Frey]/trunk/bin/server-mojo.pl
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /trunk/bin/server-mojo.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 306 - (hide annotations)
Wed Nov 5 17:36:41 2008 UTC (14 years, 3 months ago) by dpavlin
Original Path: trunk/bin/mojo-server.pl
File MIME type: text/plain
File size: 561 byte(s)
rename Mojo server mojo-server.pl and help runner to mojo-run.sh
1 dpavlin 267 #!/usr/bin/perl
2    
3     # Copyright (C) 2008, Sebastian Riedel.
4    
5     use strict;
6     use warnings;
7    
8     use FindBin;
9    
10     use lib "$FindBin::Bin/lib";
11     use lib "$FindBin::Bin/../lib";
12     use lib "$FindBin::Bin/../../lib";
13    
14     $ENV{MOJO_APP} = 'Frey::Mojo';
15    
16     # Check if Mojo is installed
17     eval 'use Mojolicious::Scripts';
18     if ($@) {
19     print <<EOF;
20     It looks like you don't have the Mojo Framework installed.
21     Please visit http://getmojo.kraih.com for detailed installation instructions.
22    
23     EOF
24     exit;
25     }
26    
27     # Start the script system
28     my $scripts = Mojolicious::Scripts->new;
29     $scripts->run(@ARGV);

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26