Skip to content

Серверный рендеринг веб-страниц

Notifications You must be signed in to change notification settings

newpointer/webrender

Repository files navigation

Установка

Кеш PhantomJS

Параметр: 'disk-cache': true Расположение: QDesktopServices::CacheLocation ~/.qws/cache/Ofi Labs/PhantomJS/

Нормальное отображение шрифтов

    http://www.infinality.net/blog/
    https://launchpad.net/~no1wantdthisname/+archive/ppa
    http://www.webupd8.org/2013/06/better-font-rendering-in-linux-with.html

OpenSUSE:

    zypper ar http://download.opensuse.org/repositories/home:/andtecheu:/infinality/openSUSE_12.1/ infinality
    zypper ref && zypper in freetype-infinality fontconfig-infinality
    zypper in fetchmsttfonts pullin-msttf-fonts
    bash /etc/fonts/infinality/infctl.sh setstyle
    forever restart /srv/webrender/web.js

Рендеринг

Из консоли:

    curl "http://localhost:3000/render.png?delay=500&url=http://localhost:8080/nkbrelation/" > page.png

Пример отчета в браузере:

    http://relations.nkb:3000/render.png?check=_REPORT_READY_&url=http://relations.nkb:8080/nkbrelation/internal/report/534eb884e4b005a5d2fea86b

About

Серверный рендеринг веб-страниц

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages