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