If instead you change your MyApp.pm file as follows
and you place your javascript files in the MyApp/root/js directory, the hassle's gone.
__PACKAGE__->config->{static}->{dirs} = [
'static',
qr/^(images|css|js)/,
];
Even better, if you don't have application specific files, you can symlink the directory to the one where you keep the same files to be served by Lighttpd.
No comments:
Post a Comment