Created
May 25, 2010 14:34
-
-
Save sharifulin/413191 to your computer and use it in GitHub Desktop.
Example of my mojolicious script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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