/[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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

trunk/bin/mojo-server.pl revision 306 by dpavlin, Wed Nov 5 17:36:41 2008 UTC trunk/bin/server-mojo.pl revision 633 by dpavlin, Sun Nov 30 01:46:13 2008 UTC
# Line 1  Line 1 
1  #!/usr/bin/perl  #!/usr/bin/perl
2    
 # Copyright (C) 2008, Sebastian Riedel.  
   
3  use strict;  use strict;
4  use warnings;  use warnings;
5    
6    # debug enviroment vars
7    $ENV{MOJO_TEMPLATE_DEBUG} = 1;
8    $ENV{MOJO_LOADER_DEBUG} = 1;
9    #$ENV{MOJO_BASE_DEBUG} = 1;
10    $ENV{MOJO_SERVER_DEBUG} = 1;
11    $ENV{MOJOX_ROUTES_DEBUG} = 1;
12    $ENV{MOJO_RELOAD} = 1;
13    
14  use FindBin;  use FindBin;
15    
16  use lib "$FindBin::Bin/lib";  use lib "$FindBin::Bin/lib";
# Line 13  use lib "$FindBin::Bin/../../lib"; Line 19  use lib "$FindBin::Bin/../../lib";
19    
20  $ENV{MOJO_APP} = 'Frey::Mojo';  $ENV{MOJO_APP} = 'Frey::Mojo';
21    
22    use Frey::Bootstrap;
23    
24  # Check if Mojo is installed  # Check if Mojo is installed
25  eval 'use Mojolicious::Scripts';  eval 'use Mojolicious::Scripts';
26  if ($@) {  if ($@) {
27      print <<EOF;      print <<EOF;
28  It looks like you don't have the Mojo Framework installed.  It looks like you don't have the Mojo Framework installed.
29  Please visit http://getmojo.kraih.com for detailed installation instructions.  Please visit http://getmojo.kraih.com for detailed installation instructions
30    or try to run Fray with one of other supported servers.
31    
32  EOF  EOF
33      exit;      exit;
34  }  }
35    
36  # Start the script system  # Start the script system
37  my $scripts = Mojolicious::Scripts->new;  my $scripts = Mojo::Scripts->new;
38  $scripts->run(@ARGV);  $scripts->run(@ARGV || 'daemon');

Legend:
Removed from v.306  
changed lines
  Added in v.633

  ViewVC Help
Powered by ViewVC 1.1.26