Is Jan Henning Thorsen’s Toadfarm an option instead? https://github.com/jhthorsen/toadfarm <https://github.com/jhthorsen/toadfarm> / http://search.cpan.org/~jhthorsen/Toadfarm-0.75/ <http://search.cpan.org/~jhthorsen/Toadfarm-0.75/>
Described as Mojolicious::Plugin::Mount on steroids. > On 5 Dec 2016, at 19:33, Charlie Brady <[email protected]> > wrote: > > > > On Mon, 5 Dec 2016, Stefan Adams wrote: > >> On Mon, Dec 5, 2016 at 10:43 AM, Charlie Brady < >> [email protected]> wrote: > >>> plugin Mount => {'/server-manager/cgi-bin/syslog' => './syslog'}; >>> plugin Mount => {'/server-manager/cgi-bin/systeminformation' => >>> './systeminformation'}; >>> >> >> It looks like all of the "syntax errors" are in syslog. What if you >> comment that one out and let it just mount systeminformation? > > I get a similar looking error: > > root@10:/etc/e-smith/web/functions# ./index.mount daemon > String found where operator expected at > /etc/e-smith/web/functions/systeminformation line 145, near "get '/'" > (Do you need to predeclare get?) > Can't load application from file > "/etc/e-smith/web/functions/systeminformation": syntax error at > /etc/e-smith/web/functions/systeminformation line 145, near "get '/'" > syntax error at /etc/e-smith/web/functions/systeminformation line 264, > near "}" > Compilation failed in require at (eval 79) line 1. > root@10:/etc/e-smith/web/functions# > >> It sure is weird that syslog runs fine by itself but causes syntax errors >> when mounted. I can't imagine how that could be! > > I'm in the same boat, which is why I asked for help. > >> "my variable masks earlier declaration"... Is it getting mounted more >> than once? > > Not as far as I know. However there might be re-declaration of the same > helpers. > >> It has syntax errors with the Mojolicious methods get and >> post and helper... > > Which is why I suspected it was M::L related. > >> Surely there's just something tiny that's being overlooked! :O > > I'm hopeful that is the case. -- 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.
