in reply to Re: Mojolicious, Morbo, Hypnotoad and Apache httpd deployment
in thread Mojolicious, Morbo, Hypnotoad and Apache httpd deployment [SOLVED]

$ pwd /home/martin $ hypnotoad PokusApp/script/runapp Couldn't load application from file "/home/martin/PokusApp/script/runa +pp": Couldn't find application class "PokusApp". $

Replies are listed 'Best First'.
Re^3: Mojolicious, Morbo, Hypnotoad and Apache httpd deployment
by Anonymous Monk on Jun 01, 2014 at 18:19 UTC
    Is that a confusing message ? Where is application class "PokusApp". located?

      Is /home/martin/PokusApp/lib in @INC?

      No, it is not.

      What is in @INC?

      @INC contains: /usr/local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5 .

      Why does your runapp not use FindBin?

      I thought that I could make do without it (FindBin). Now I see that it was bad idea probably while FindBin is Perl 5 core module.

      Why is your runapp not called pokus_app?

      I think it's possible according to docs so why not?

      When I make an app with mojo generate app PokusApp I run it without problems with morbo pokus_app/script/pokus_app

      Yes, me too, even if I run this:

      $ morbo PokusApp/script/runapp

        So, problem solved now (switching to findbin fixed it)?

      An application class PokusApp is located in the file /home/martin/PokusApp/lib/PokusApp.pm.

        An application class PokusApp is located in the file /home/martin/PokusApp/lib/PokusApp.pm.

        Is /home/martin/PokusApp/lib in @INC? What is in @INC? Why does your runapp not use FindBin? Why is your runapp not called pokus_app?

        When I make an app with mojo generate app PokusApp I run it without problems with morbo pokus_app/script/pokus_app