-
-
Save diegok/7f3bb043cd7298f3c7a5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ hypnotoad ./brand_shop/script/brand_shop | |
Can't load application from file "/home/deploy/supers/apps/brand_shop/script/brand_shop": Can't find application class "BrandShop" in @INC. (lib /home/deploy/perl5/perlbrew/perls/perl-5.18.4/lib/site_perl/5.18.4/x86_64-linux /home/deploy/perl5/perlbrew/perls/perl-5.18.4/lib/site_perl/5.18.4 /home/deploy/perl5/perlbrew/perls/perl-5.18.4/lib/5.18.4/x86_64-linux /home/deploy/perl5/perlbrew/perls/perl-5.18.4/lib/5.18.4 .) | |
#------------------------------- | |
This is the start_app script: | |
#------------------------------- | |
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use lib 'lib'; | |
# Start command line interface for application | |
require Mojolicious::Commands; | |
Mojolicious::Commands->start_app('BrandShop'); | |
#------------------------------- | |
Old style works: | |
#------------------------------- | |
#!/usr/bin/env perl | |
use Mojo::Base -strict; | |
use File::Basename 'dirname'; | |
use File::Spec::Functions qw/catdir splitdir/; | |
# Source directory has precedence | |
my @base = (splitdir(dirname(__FILE__)), '..'); | |
my $lib = join('/', @base, 'lib'); | |
-e catdir(@base, 't') ? unshift(@INC, $lib) : push(@INC, $lib); | |
# Check if Mojolicious is installed; | |
die <<EOF unless eval 'use Mojolicious::Commands; 1'; | |
It looks like you don't have the Mojolicious framework installed. | |
Please visit http://mojolicio.us for detailed installation instructions. | |
EOF | |
# Start commands for application | |
Mojolicious::Commands->start_app('BrandShop'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment