how to run my_app with hypnotoad?

28 views
Skip to first unread message

Caveman Pl

unread,
Aug 26, 2019, 2:29:02 PM8/26/19
to Mojolicious
Hi,

I'm runing my_app with command

morbo -w ./lib -w ./public -w templates  script/my_app -l http://192.168.10.130:1773


my_app file is

#!/usr/bin/env perl
use strict;
use warnings;
use FindBin;
BEGIN { unshift @INC, "$FindBin::Bin/../lib" }
use Mojolicious::Commands;
use Mojolicious::Lite;
# Start command line interface for application
Mojolicious::Commands->start_app('MyApp');


whole site works great with morbo but now I need move it from development to production (many people will use it).

site directories scheme is

/mojolicious/tmp/my_app
/mojolicious/tmp/my_app/my_app.conf
/mojolicious/tmp/my_app/lib
/mojolicious/tmp/my_app/lib/MyApp
/mojolicious/tmp/my_app/lib/MyApp.pm
/mojolicious/tmp/my_app/script
/mojolicious/tmp/my_app/script/my_app
/mojolicious/tmp/my_app/templates


When I look at my_app and dir scheme I understand how it works.
I dont know how to pass dir scheme to hypnotoad.

Yes, I have read doc...

Thank you for help,

tj

Dan Book

unread,
Aug 26, 2019, 2:31:04 PM8/26/19
to mojol...@googlegroups.com
It is simply "hypnotoad script/my_app". Not sure what you mean by passing dir scheme.

-Dan

--
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 mojolicious...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mojolicious/0c681653-af92-45ae-b0c6-c271268145e3%40googlegroups.com.

Caveman Pl

unread,
Aug 27, 2019, 11:03:28 AM8/27/19
to Mojolicious


W dniu poniedziałek, 26 sierpnia 2019 20:31:04 UTC+2 użytkownik Dan Book napisał:
It is simply "hypnotoad script/my_app". Not sure what you mean by passing dir scheme.

You are right Dan, 
"hypnotoad script/my_app" works perfectly for me.
(I had an error in my_app.conf and because of it didn't work) 

Thank you,

tj

 
-Dan

To unsubscribe from this group and stop receiving emails from it, send an email to mojol...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages