balupton/docpad — Issue #98: enable offline work
Author: johannesjh
Created: 2011-11-04 07:16:22+00:00
State: open

I would like Docpad to work without an internet connection.

Background:
I really like docpad's idea, so I set out to try it yesterday. I found that the `docpad generate` command requires an active internet connection to work, it seems that it wants to lookup domain names, but I don't see why that would be needed?

Problem:
When I disconnect from all networks, `docpad generate` gives me the following error:

```

stream.js:99
throw er; // Unhandled stream error in pipe.
^
Error: ECONNREFUSED, Could not contact DNS servers
at dns.js:194:15
at Object.lookup (dns.js:190:11)
at Socket.connect (net.js:718:20)
at Object.connect (tls.js:861:10)
at Agent._getConnection (https.js:61:15)
at Agent._establishNewConnection (http.js:1178:21)
at Agent._cycle (http.js:1404:10)
at Agent.appendMessage (http.js:1160:8)
at Object._requestFromAgent (http.js:1436:27)
at Object.request (https.js:91:15)
```

Is this a feature or a bug? Can I disable the DNS lookup by providing the right information e.g. in a config file?