And I can't even get the Mojolicious::Lite::Tutorial to work.

On Tuesday, April 26, 2016 at 12:02:28 PM UTC-5, Billy Patton wrote:
>
> I got handed an application done with mojolicious and mason.
> I have never used mojo or mason, but I'be been writing in perl since 
> version 3.1.
> I can get the first part of the app to run with : https://10.88.3.45:8443
>
>
> [bpatton@api-i api_mojo]$ !ps
> ps -aux | grep perl
> Warning: bad syntax, perhaps a bogus '-'? See 
> /usr/share/doc/procps-3.2.8/FAQ
> root     17738  0.0  1.3 263120 52244 ?        S    Apr20   0:46 perl 
> /usr/local/api_mojo/script/app.pl --listen https://*:8443 --workers 2 
> --accepts 1000 --clients 1000 --requests 25 -m production -v
> root     20311  0.0  1.4 269952 58264 ?        S    Apr24   0:18 perl 
> /usr/local/api_mojo/script/app.pl --listen https://*:8443 --workers 2 
> --accepts 1000 --clients 1000 --requests 25 -m production -v
> root     21459  0.0  1.4 269252 57488 ?        S    Apr25   0:08 perl 
> /usr/local/api_mojo/script/app.pl --listen https://*:8443 --workers 2 
> --accepts 1000 --clients 1000 --requests 25 -m production -v
>
> This is started at boot time on the VM.
> I'm not able to get much out in the way of logging.
> Here is a snippet from /var/log/mojo.debug :
> Server available at https://127.0.0.1:8443
> [Wed Apr 20 10:53:23 2016] [info] Manager 17738 started
> [Wed Apr 20 10:53:23 2016] [debug] Worker 17739 started
> [Wed Apr 20 10:53:23 2016] [info] Creating process id file 
> "/tmp/prefork.pid"
> [Wed Apr 20 10:53:23 2016] [debug] Worker 17740 started
> [Wed Apr 20 10:53:27 2016] [debug] GET "/auth/test"
> [Wed Apr 20 10:53:27 2016] [debug] Routing to controller "App::Auth" and 
> action "user"
> [Wed Apr 20 10:53:27 2016] [debug] Routing to controller "App::Auth" and 
> action "test"
> [Wed Apr 20 10:53:27 2016] [debug] POST "/ws/auth/test"
> [Wed Apr 20 10:53:27 2016] [debug] Routing to controller "App::Auth" and 
> action "user"
> [Wed Apr 20 10:53:27 2016] [debug] Controller "App::Ws" does not exist
> [Wed Apr 20 10:53:27 2016] [debug] Template "ws/auth.html.ep" not found
> [Wed Apr 20 10:53:27 2016] [debug] Rendering template 
> "not_found.production.html.ep"
> [Wed Apr 20 10:53:27 2016] [debug] 404 Not Found (0.043743s, 22.861/s)
> [Wed Apr 20 10:53:27 2016] [debug] 200 OK (0.197996s, 5.051/s)
>
> I'm assuming that the App::Auth is referring to ws/controller/auth.pl
> The missing templates are just that, missing, the guy was laid off before 
> he could complete it.
> Now when I get to the first page and hit a hyperlink to go to a second I 
> get :
> https://10.88.3.45:8443/auth/test/view
> and it gets there just fine.
> But when I fill in the blanks and hit submit, I get :
> https://10.88.3.45/auth/test
> Notice no port on the url.  I've tried adding this and it makes no 
> difference.
> What is displayed is a single tic.  When I look in the development stab of 
> Safari the is no Show Page Source.
> I have looked in the code for logging and it points me to /tmp/debug.txt
> But nothing gets written into it.
> I know this is application specific and help might be very limited.
> I've been jumping backhand forth between this and another app in 
> CodeIgniter
>
>
>

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

Reply via email to