How i did it:
cd /var/www
mojo generate app MyApp
I get this script:
#!/usr/bin/env perluse strict;use warnings;use lib 'lib';# Start command line
interface for applicationrequire
Mojolicious::Commands;Mojolicious::Commands->start_app('myapp');
but it not work:
hypnotoad /var/www/myapp/script/myapp
Can't load application from file "/var/www/myapp/script/myapp":
Can't find application class "MyApp" in @INC. etc....
it working if i changed the code:
#!/usr/bin/env perluse strict;use warnings;use FindBin;BEGIN { unshift @INC,
"$FindBin::Bin/../lib" }# Start command line interface for applicationrequire
Mojolicious::Commands;Mojolicious::Commands->start_app('MyApp');
Why did it so?
--
You received this message because you are subscribed to the Google Groups
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.