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

... runhtapp.pl ...

Um, no. Hypnotoad wants apps not hypnotoads :) Try running  hypnotoad /home/martin/PokusApp/script/runapp

Replies are listed 'Best First'.
Re^2: Mojolicious, Morbo, Hypnotoad and Apache httpd deployment
by brilant_blue (Beadle) on Jun 01, 2014 at 18:16 UTC

    $ 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". $

      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

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