Hi Neil,
i had same problem.
solution:
morbo *script/*your_app_name
so you mustn't change the directory 'script'. unusual but run.
Am Mittwoch, 3. September 2014 18:19:41 UTC+2 schrieb Neil Watson:
>
> Greetings,
>
> Just when I thought I knew the basics :( It tried to create simple
> sample app, but get an error. What have I missed?
>
> neil@ettin ~/src/cottage_site/app $ cat CottageS.pl
> #!/usr/bin/perl
>
> use Mojolicious::Commands;
>
> Mojolicious::Commands->start_app('CottageS');
>
> neil@ettin ~/src/cottage_site/app $ cat lib/CottageS.pm
> package CottageS;
>
> use Mojo::Base qw( Mojolicious );
>
> sub startup
> {
> my $self = shift;
> my $config = $self->plugin('config', file => 'CottageS.conf' );
> $self->secrets( @{ $config->{secrets} } );
>
> ## Routes
> my $r = $self->routes;
>
> $r->any( '/' )-to('home');
> }
>
> 1;
> neil@ettin ~/src/cottage_site/app $ morbo CottageS.pl
> Couldn't load application from file "CottageS.pl": Couldn't find
> application class "CottageS".
>
> --
> Neil Watson
> Linux/UNIX Consultant
> http://watson-wilson.ca
>
--
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.