Skip to content

Works out of the box? #1

Description

@mikeumus

I added the hapi plugin to my package.json and did docpad install then docpad run and got the following:

$ docpad run
info: Welcome to DocPad v6.60.3 (local installation: c:\Users\Mikeumus\Desktop\M
DM\Projects\MDM-Projects\bshares.co\Development\Staging\node_modules\docpad)
info: Contribute: http://docpad.org/docs/contribute
info: Plugins: bitcoinsvg, cleanurls, coffeescript, eco, ghpages, hapi, liverelo
ad, marked, partials, text
info: Environment: development
info: DocPad listening to http://0.0.0.0:9778/ on directory c:\Users\Mikeumus\De
sktop\MDM\Projects\MDM-Projects\bshares.co\Development\Staging\out
info: Shutting down default Express server
error: Something went wrong with the action
error: An error occured:
Error: Invalid server options: {
  "maxSockets": null,
  "router": {
    "isCaseSensitive": true
  },
  "state": {
    "cookies": {
      "parse": true,
      "failAction": "error",
      "clearInvalid": false,
      "strictHeader": true
    }
  },
  "location": "",
  "payload": {
    "maxBytes": 1048576,
    "uploads": "C:/Users/Mikeumus/AppData/Local/Temp"
  },
  "validation": null,
  "json": {
    "replacer": null,
    "space": null
  },
  "files": {
    "etagsCacheMaxSize": 10000,
    "relativeTo" [1]: "c:\\Users\\Mikeumus\\Desktop\\MDM\\Projects\\MDM-Projects
\\bshares.co\\Development\\Staging"
  },
  "timeout": {
    "client": 10000,
    "server": false
  },
  "load": {
    "maxHeapUsedBytes": 0,
    "maxRssBytes": 0,
    "maxEventLoopDelay": 0,
    "sampleInterval": 0
  },
  "debug": {
    "request": [
      "implementation"
    ]
  },
  "labels": [],
  "cache": {
    "engine": "memory"
  },
  "cors": false
}

[1] the value of relativeTo must match the regular expression /^[\/\.]/
    at Object.exports.assert (c:\Users\Mikeumus\Desktop\MDM\Projects\MDM-Project
s\bshares.co\Development\Staging\node_modules\docpad-plugin-hapi\node_modules\ho
ek\lib\index.js:394:11)
    at new module.exports.internals.Server (c:\Users\Mikeumus\Desktop\MDM\Projec
ts\MDM-Projects\bshares.co\Development\Staging\node_modules\docpad-plugin-hapi\n
ode_modules\hapi\lib\server.js:69:11)
    at module.exports (c:\Users\Mikeumus\Desktop\MDM\Projects\MDM-Projects\bshar
es.co\Development\Staging\node_modules\docpad-plugin-hapi\lib\hapi-server.js:42:
18)
    at HapiPlugin.serverAfter (c:\Users\Mikeumus\Desktop\MDM\Projects\MDM-Projec
ts\bshares.co\Development\Staging\node_modules\docpad-plugin-hapi\out\hapi.plugi
n.js:62:48)
    at ambi (c:\Users\Mikeumus\Desktop\MDM\Projects\MDM-Projects\bshares.co\Deve
lopment\Staging\node_modules\docpad\node_modules\ambi\out\lib\ambi.js:23:18)
    at Task.<anonymous> (c:\Users\Mikeumus\Desktop\MDM\Projects\MDM-Projects\bsh
ares.co\Development\Staging\node_modules\docpad\node_modules\event-emitter-group
ed\out\lib\event-emitter-grouped.js:38:23)
    at ambi (c:\Users\Mikeumus\Desktop\MDM\Projects\MDM-Projects\bshares.co\Deve
lopment\Staging\node_modules\docpad\node_modules\ambi\out\lib\ambi.js:23:18)
    at fire (c:\Users\Mikeumus\Desktop\MDM\Projects\MDM-Projects\bshares.co\Deve
lopment\Staging\node_modules\docpad\node_modules\taskgroup\out\lib\taskgroup.js:
159:23)
    at b (domain.js:183:18)
    at Domain.run (domain.js:123:23)
    at Task.fire (c:\Users\Mikeumus\Desktop\MDM\Projects\MDM-Projects\bshares.co
\Development\Staging\node_modules\docpad\node_modules\taskgroup\out\lib\taskgrou
p.js:166:25)
    at processImmediate [as _immediateCallback] (timers.js:330:15)
info: Shutting down... cya next time!

So my question is if this plugin is designed to work out of the box or if setting up it's config as in the ReadMe is a required step? I may also be missing something very apparent but if I am missing something, maybe it should be outlined in the ReadMe #2cents.

Thanks for the plugin! Can't wait to start using it.

p.s.
It may also be a computer error on my end as I'm getting a error simply trying to login to NPM inside git bash. It's a newly recovered Windows 8.1 Surface Pro to note.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions