I think 0.52 should fix the issue with not finding hypnotoad. It will soon 
be available on CPAN...

https://github.com/jhthorsen/toadfarm/blob/master/Changes#L7


On Saturday, April 25, 2015 at 6:45:14 PM UTC+2, mjb152 wrote:
>
> I just renamed webfarm to webfarm.pl, and it started. 
> Don't delay dinner !!, I'm running now and starting to play around with it.
>
> thx
>
> On Sat, Apr 25, 2015 at 5:41 PM, Jan Henning Thorsen <
> [email protected]> wrote:
>
>> I'm guessing "sudo" doesn't inherit the PATH from your user, so it 
>> doesn't find hypnotoad. I guess I could make Toadfarm a bit more clever 
>> when it comes to finding "hypnotoad", but I'm making dinner now so the 
>> "improvement" won't be available until tomorrow.
>>
>> Anyhow, try running "sudo -E" instead or manipulate $ENV{PATH} inside 
>> webfarm, like this:
>>
>>   $ENV{PATH} = 
>> "/home/mojouser/perl5/perlbrew/perls/perl-5.20.2/bin:$ENV{PATH}";
>>
>> I would very much appreciate if you made an issue on github 
>> <https://github.com/jhthorsen/toadfarm/issues>, but I will try to look 
>> into this either way.
>>
>>
>>
>> On Saturday, April 25, 2015 at 6:29:38 PM UTC+2, mjb152 wrote:
>>>
>>> Jan - I'm playing with this now, but hitting an initial problem. 
>>>
>>> I generate 2 apps, with: -
>>>
>>> mojo generate app Test1
>>> mojo generate app Test2
>>>
>>> I then edit both the scripts  (test1/script/test1 
>>>  and test2/script/test2), adding the following lines so they will start 
>>> nicely.
>>>
>>> *use FindBin;*
>>> *BEGIN { unshift @INC, "$FindBin::Bin/../lib" }*
>>>
>>> so now I have a directory called */home/mojouser/apps*  with 2 apps in 
>>> subdirectories *test1* and *test2*.
>>> If I type *morbo test1/script/test1  *then it works, same for test2. 
>>>  all good.
>>>
>>> If I create a file called webfarm, as below and start it, I get an 
>>> error.  any ideas why ?
>>>
>>> webfarm
>>> #!/home/mojouser/perl5/perlbrew/perls/perl-5.20.2/bin/perl
>>> use Toadfarm -dsl;
>>>
>>> logging {
>>>   combined => 1,
>>>   file     => "/var/log/toadfarm/app.log",
>>>   level    => "info",
>>> };
>>>
>>> mount "/home/mojouser/apps/test1/script/test1"        => {"Host" => 
>>> "46.101.2.191"};
>>> mount "/home/mojouser/apps/test2/script/test2"        => {"Host" => 
>>> "46.101.2.191"};
>>>
>>> plugin "Toadfarm::Plugin::AccessLog";
>>>
>>> start; # need to be at the last line
>>>
>>>
>>> Error
>>> mojouser@ultron:~/apps$ sudo ./webfarm start
>>> Can't exec "hypnotoad": No such file or directory at 
>>> /home/mojouser/perl5/perlbrew/perls/perl-5.20.2/lib/site_perl/5.20.2/Toadfarm/Command/
>>> start.pm line 44.
>>> Hypnotoad server failed to start. (72057594037927935)
>>>
>>>
>>>
>>>
>>>
>>>
>>>  -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "Mojolicious" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/mojolicious/WFh3C3elp9Y/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at http://groups.google.com/group/mojolicious.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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 http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to