Skip to content

Instantly share code, notes, and snippets.

@sharifulin
Created May 25, 2010 14:34
Show Gist options
  • Select an option

  • Save sharifulin/413191 to your computer and use it in GitHub Desktop.

Select an option

Save sharifulin/413191 to your computer and use it in GitHub Desktop.
Example of my mojolicious script
#!/usr/bin/perl
use strict;
use lib qw(../lib ../mojo/lib);
BEGIN {
$ENV{MOJO_MODE}++;
$ENV{MOJO_TMPDIR} = 'tmp/upload';
$ENV{MOJO_MAX_MESSAGE_SIZE} = 2 * 1024 * 1024 * 1024; # 2 GB
};
use FindBin;
use lib "$FindBin::Bin/../lib";
# use lib "$FindBin::Bin/../../lib";
$ENV{MOJO_APP} ||= 'App';
use Mojolicious::Commands; Mojolicious::Commands->start;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment