Skip to content

Instantly share code, notes, and snippets.

@hesco
Last active August 29, 2015 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hesco/8d5399fb636f24c34829 to your computer and use it in GitHub Desktop.
Save hesco/8d5399fb636f24c34829 to your computer and use it in GitHub Desktop.
Tracking this through the debugger gets me as far as this line:
Mojo::Server::Hypnotoad::run(local/lib/perl5/Mojo/Server/Hypnotoad.pm:31):
die "Can't exec: $!" if !$ENV{HYPNOTOAD_REV}++ && !exec $ENV{HYPNOTOAD_EXE};
so I tried running the exec in the debugger and it kill'd the debugger.
My environment includes:
MOJO_MODE=dev
PERL5LIB=lib:local/lib/perl5:
-----
This is my script/tfc
#!/usr/bin/env perl
use strict;
use warnings;
use TFC;
use FindBin;
BEGIN {
unshift @INC, '/opt/local/mojo/lib/perl5';
unshift @INC, "$FindBin::Bin/../lib";
unshift @INC, "$FindBin::Bin/../local";
}
# Start command line interface for application
require Mojolicious::Commands;
my $listen_socket = TFC::parse_listen_socket_from_config_file();
Mojolicious::Commands->start_app('TFC', 'daemon', '-l', "http://*:$listen_socket" );
-----
Any advice would be appreciated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment