动态到静态站点镜像
使用wget将任意数量的站点镜像到本地磁盘,然后使用node.js对其进行服务。 我将其用于将WordPress网站从动态资源消耗者转换为Raspberry Pi托管的快速静态网站,以进行存档。
专为NodeJS v0.10.5打造
镜射
wget --mirror -erobots=off --adjust-extension --convert-links --no-parent --page-requisites --no-host-directories -P sites/ www.mikesmullin.com
笔记:
--convert-links is a little bit annoying because clean urls like / turn into /index.html
--no-host-directories