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

Is that a confusing message ? Where is application class "PokusApp". located?
  • Comment on Re^3: Mojolicious, Morbo, Hypnotoad and Apache httpd deployment

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

    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)?

        Yes, it seems to be working well with Hypnotoad and Morbo servers now after switching to FindBin module. (Why?) I still didn't configure Apache httpd server properly because at first I wanted to make changes in my files and test its function. At second I want to configure httpd. But maybe there will be no necessity for that while everything is fine with Hypnotoad.

        Thank you Monks!

Re^4: Mojolicious, Morbo, Hypnotoad and Apache httpd deployment
by brilant_blue (Beadle) on Jun 01, 2014 at 18:33 UTC

    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

        Maybe posting the contents of your pokus_app is just what's needed to make brilant_blue's Hypnotoad application work?