[Catalyst] Static::Simple plugin does not load
Kroshka Yenot
trashbox at cary.lv
Sat Apr 15 12:39:00 GMT 2017
Ahoj!
I have following env and Static::Simple works pretty well but does not
show upon load too.
p5-Catalyst-Action-RenderView-0.16_1
p5-Catalyst-Devel-1.39
p5-Catalyst-Model-CDBI-0.12_1
p5-Catalyst-Plugin-ConfigLoader-0.34_1
p5-Catalyst-Plugin-Log-Handler-0.08_1
p5-Catalyst-Plugin-Session-0.40
p5-Catalyst-Plugin-Session-State-Cookie-0.17_1
p5-Catalyst-Plugin-Session-Store-File-0.18_1
p5-Catalyst-Plugin-Static-Simple-0.33
p5-Catalyst-Runtime-5.90114
p5-Catalyst-View-JSON-0.33_1
p5-Catalyst-View-TT-0.44
марта 08 14:40:02 [DEBUG] Loaded plugins:
.--------------------------------------------------------------
| Catalyst::Plugin::ConfigLoader 0.34
| Catalyst::Plugin::Log::Handler 0.08
| Catalyst::Plugin::Session 0.4
| Catalyst::Plugin::Session::State::Cookie 0.17
| Catalyst::Plugin::Session::Store::File 0.18
'--------------------------------------------------------------
Btw it should be used in your
PROJECTDIR\lib\project.pm
May be forgot ?
package [% PACKAGE NAME %];
use Moose;
use namespace::autoclean;
use Catalyst::Runtime 5.80;
use Catalyst qw/
-Debug
ConfigLoader
*Static::Simple*<< --- BOOM !!!
Session
Session::Store::File
Session::State::Cookie
Log::Handler
/;
extends 'Catalyst';
our $VERSION = '0.01';
...
and then configured in [% where you store your configiration %]
{
name => 'AWESOME_PROJECT',
encoding => 'utf8',
default_view => 'HTML',
...
* 'Plugin::Static::Simple' => {**
** dirs => [**
** 'images', 'fonts', 'js', 'font-awesome', 'css'**
** ],**
** },**
*
...
But this mysterious thing is defenetly working
марта 08 21:54:13 [DEBUG] Static::Simple: Serving ... catalyst_logo.png
as ....
15.04.2017 12:48, Alex Povolotsky пишет:
> Hello
>
> I've installed a new Catalyst environment from scratch, and
> Static::Simple does not show up in list of loaded plugins and does not
> work.
>
> Catalyst-Action-RenderView-0.16_1
> Catalyst-Devel-1.39
> Catalyst-Plugin-ConfigLoader-0.34_1
> Catalyst-Plugin-Static-Simple-0.33
> Catalyst-Runtime-5.90114
>
> I'll try to debug it out, but maybe someone has run into that problem
> already?
>
> Alex
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scsys.co.uk/pipermail/catalyst/attachments/20170415/b8124cff/attachment.htm>
More information about the Catalyst
mailing list