Seems like it really was a bug of hypnotoad. I updated Mojolicious to latest version (6.39) and now everything works fine! :) Case closed.
среда, 13 января 2016 г., 15:19:13 UTC+3 пользователь Pavel Serikov написал: > > Hello colleagues, > > I have a quite unpleasant problem: Glypicons can't be loaded on production > instance though at localhost it's working fine. > > In Chrome console I see that server request files by > *http://domain_name/fonts/glyphicons-halflings-regular.ttf > <http://domain_name/fonts/glyphicons-halflings-regular.ttf>* address, but > in fact file stored at > *public/vendor/bootstrap-3.3.6-dist/fonts/glyphicons-halflings-regular.ttf* > catalog. > So* /vendor/bootstrap-3.3.6-dist/* part of url somehow is missed. > > All other css and js files at production instance are loading normally. > > .../public/vendor/bootstrap-3.3.6-dist# ls -la > total 20 > drwxrwxrwx 5 root root 4096 Jan 12 11:53 . > drwxr-xr-x 3 root root 4096 Jan 12 11:53 .. > drwxrwxrwx 2 root root 4096 Jan 12 11:53 css > drwxrwxrwx 2 root root 4096 Jan 12 11:53 fonts > drwxrwxrwx 2 root root 4096 Jan 12 11:53 js > > > At bootstrap.css glyphicons are loaded via relative path like: > > @font-face { > font-family: 'Glyphicons Halflings'; > src: url('../fonts/glyphicons-halflings-regular.eot'); > .. > > Can it be the problem? Or I need to add something in nginx domain config? > Or it's bug of hypnotoad? > The difference between production instance and development localhost only > that on localhost I'm using morbo and on production server I use > hypnotoad+nginx. > If I run my project under morbo on production server it also works fine. > > I'm using Mojolicious v. 6.11 > -- 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 mojolicious+unsubscr...@googlegroups.com. To post to this group, send email to mojolicious@googlegroups.com. Visit this group at https://groups.google.com/group/mojolicious. For more options, visit https://groups.google.com/d/optout.