Works OK here: $ mkdir public $ echo bar > public/foo $ perl -MMojolicious::Lite -E'get "/foo"; app->start' get /foo bar
On Wed, Oct 21, 2015 at 6:46 PM, Pavel Serikov <[email protected]> wrote: > You suggest generation of full app, I need a lite app. > > Did generation this way: > > $ mojo generate lite_app > > > > четверг, 22 октября 2015 г., 1:16:01 UTC+3 пользователь Stefan Adams > написал: >> >> I might suggest you start with a generated app, run that for personal >> verification, and then compare that (which works) with yours (which >> doesn't). >> >> $ mojo generate app >> >> On Wed, Oct 21, 2015 at 3:58 PM, Pavel Serikov <[email protected]> >> wrote: >> >>> I created "public" folder into my project and put js and css files into >>> it. >>> But for some reason morbo doesn't serve them, it's shown 404 code in >>> browser console network tab. >>> Is documentation >>> <http://mojolicio.us/perldoc/Mojolicious/Guides/Tutorial#Static-files> >>> outdated? >>> >>> I have Mojolicious v 6.20 and "public" folder has all permissions. >>> >>> What is wrong? >>> >>> -- >>> 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. >>> >> >> -- > 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. > -- 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.
