Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mojolicious - can't start app with hypnotoad

As the title says and I'm not sure why. The only thing happening is a hypnotaod.pid file appearing in the working directory. No running process, nothing listening on the defined port. Also - everything works fine with morbo.

EDIT: I've straced the startup, http://pastebin.com/YWUSeMuu

EDIT2: After looking through the strace output above it seems that hypnotad appends another ".pl" to the script file. I've change the file name to myapp, rinse, repeat http://pastebin.com/NVK2rhu4

Any ideas much appreaciated.

[root@fedora16 Mojo]# ./myapp.pl version
CORE
  Perl        (v5.14.2, linux)
  Mojolicious (3.02, Rainbow)

OPTIONAL
  EV              (4.11)
  IO::Socket::IP  (0.16)
  IO::Socket::SSL (1.76)

This version is up to date, have fun!

[root@fedora16 Mojo]# hypnotoad -t myapp.pl
Everything looks good!

[root@fedora16 Mojo]# hypnotoad  myapp.pl
Starting hot deployment for Hypnotoad server 29432.

Code by now is simply the tutorial testcode

use Mojolicious::Lite;

app->config(hypnotoad => {listen => ['http://*:3000']});
get '/' => {text => 'ALL GLORY TO THE HYPNOTOAD!'};
app->start;
like image 437
moodywoody Avatar asked Oct 22 '22 17:10

moodywoody


1 Answers

The same thing happened to me, I removed the .pid file in the app directory and started hypnotoad again and it worked just fine!. Hope this helps. M.

like image 108
Martin Gonzalez Adolfi Avatar answered Nov 08 '22 15:11

Martin Gonzalez Adolfi