Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mikesmullin/node-static-mirror
Mirrors a snapshot of one or more dynamic sites and serves it statically via NodeJS + Express
https://github.com/mikesmullin/node-static-mirror
Last synced: about 1 month ago
JSON representation
Mirrors a snapshot of one or more dynamic sites and serves it statically via NodeJS + Express
- Host: GitHub
- URL: https://github.com/mikesmullin/node-static-mirror
- Owner: mikesmullin
- Created: 2013-05-11T19:18:44.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-07-24T20:13:10.000Z (over 9 years ago)
- Last Synced: 2024-04-14T08:02:08.631Z (9 months ago)
- Language: JavaScript
- Size: 133 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dynamic-to-Static site mirror
Uses wget to mirror any number of sites to local disk and then node.js to serve it. I applied this to convert my
WordPress site from a dynamic resource hog to a fast static site hosted by a Raspberry Pi for archival purposes.Built for NodeJS v0.10.5
## Mirroring
```bash
wget --mirror -erobots=off --adjust-extension --convert-links --no-parent --page-requisites --no-host-directories -P sites/ www.mikesmullin.com
```### Notes:
--convert-links is a little bit annoying because clean urls like / turn into /index.html
--no-host-directories is probably unnecessary now
-P should be sites/## Starting server
```bash
sudo node server.js
```